-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(run-manager): call shutdown endpoint before workflow stop (#559) #559
Conversation
…hub#559) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
c62df14
to
3093528
Compare
…hub#559) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
3093528
to
a1c3498
Compare
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.
Nice and clean approach! I was wondering whether we should increase the
termination grace period to be more sure that the HTTP call is completed, but I guess what really matters is that the request is sent to /shutdown
. Then even if the response is not delivered in time to the run-batch
pod (because the grace period has passed), the jobs should have terminated anyway.
As for the commit scopes, maybe it's better to always use run-manager
rather than workflow-run-manager
?
…b#559) Let reana-job-controller update the status of jobs, as this is not a concern of reana-workflow-controller, which should manage workflows and not jobs.
…hub#559) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
Let reana-job-controller update the status of jobs, as this is not a concern of reana-workflow-controller, which should manage workflows and not jobs.
…hub#559) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
a1c3498
to
f54d951
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #559 +/- ##
==========================================
+ Coverage 72.50% 72.83% +0.33%
==========================================
Files 15 15
Lines 1382 1362 -20
==========================================
- Hits 1002 992 -10
+ Misses 380 370 -10
|
Let reana-job-controller update the status of jobs, as this is not a concern of reana-workflow-controller, which should manage workflows and not jobs.
…hub#559) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
f54d951
to
139728c
Compare
) Call the shutdown endpoint of reana-job-controller before stopping a running workflow, so that running jobs are correctly cleaned up. Closes reanahub#252 Closes reanahub#546
Use exec to execute job-controller, so that the server can receive signals such as `SIGTERM`. Closes reanahub/reana-job-controller#347
139728c
to
817b019
Compare
Closes #252
Closes #546
Closes reanahub/reana-job-controller#347