-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BIOMAGE-1864] added heartbeat to tasks #224
Conversation
Codecov Report
@@ Coverage Diff @@
## master #224 +/- ##
=======================================
Coverage 70.60% 70.60%
=======================================
Files 19 19
Lines 1446 1446
=======================================
Hits 1021 1021
Misses 425 425 Continue to review full report at Codecov.
|
Co-authored-by: german <[email protected]>
# | ||
# Sends a heartbeat to the state machine every 10 seconds | ||
# Once the task is completed the heartbeat will fail accordingly with a | ||
# task timeout and exit the loop and a new heartbeat will be set up by next task. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The task timeout is 10800 seconds (3 hours). If the task succeeds, does this mean that this bg process will run for 3 hours before failing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no:
- as soon as the task is completed the heartbeat fails and the loop stops
- when a pipeline finishes the pod and everything running inside is just killed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With minor feedback to comment
Co-authored-by: Anugerah Erlaut <[email protected]>
Description
Added parallel processing to set up a heartbeat function that sends heartbeats to the state machines during the task processing.
Details
URL to issue
https://biomage.atlassian.net/browse/BIOMAGE-1846
Link to staging deployment URL (or set N/A)
https://ui-yes-heartbeat.scp-staging.biomage.net/
Links to any PRs or resources related to this PR
hms-dbmi-cellenics/api#333
Integration test branch
master
Merge checklist
Your changes will be ready for merging after all of the steps below have been completed.
Code updates
Have best practices and ongoing refactors being observed in this PR
Manual/unit testing
Integration testing
You must check the box below to run integration tests on the latest commit on your PR branch.
Integration tests have to pass before the PR can be merged. Without checking the box, your PR
will not pass the required status checks for merging.
Documentation updates
Optional