-
-
Notifications
You must be signed in to change notification settings - Fork 779
Add wait_period config before abandoning executions during shutdown. #5344
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
Add wait_period config before abandoning executions during shutdown. #5344
Conversation
|
Thanks for the contribution. The change indeed looks reasonable, but perhaps also a corresponding documentation PR may be in order - aka in what kind of situations users may want to set this value to something larger than 0 (basically what you described as your motivation for the change - in case users have short running executions or similar). |
…hboo/wait_period
Thanks @Kami for the review. I've added the new config details in the CHANGELOG. |
|
@khushboobhatia01 / @m4dcoder Given the discussions about a clean shutdown behaviour (#5367, is this PR still targetted for the 3.6.0 release. If we are going to wait, then we should probably remove it from the 3.6 milestone and project. |
|
I think a pause is good, but only
So, I don't think this should go in 3.6 |
Agree. We could think of a similar approach as discussed for workflow engine graceful shutdown #5373)
In this case abandonment will happen only for orphaned action executions stuck in some running/canceling/pausing state Thoughts @cognifloyd @m4dcoder? |
@amanda11 I think this PR is still open for discussion. I had created this MR before the workflow engine graceful shutdown discussion. |
|
Yeah. We should use use the same approach for workflow engine and actionrunner. As an interim PR, I think getting the services to add/remove self from registry would be a good start. Everything at once would probably be more difficult to review & merge. |
Yes, will start with that. |
This pull request adds a new
abandon_wait_configwhich will allow user to configure wait period before worker starts abandoning incomplete executions during shutdown. This will ensure short lived executions can complete instead of just abandoning.Why is this change needed?
terminationGracePeriodconfig which waits forxseconds before killing the pod.We plan to set this config, so that short lived executions can complete without any issue. With the current implementation actionrunner will directly start abandoning incomplete executions and
terminationGracePeriodconfig won't be of much use.