Skip to content
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

✨ Stop worker gracefully on sigterm #407

Merged
merged 4 commits into from
Dec 17, 2023
Merged

Conversation

phlmn
Copy link
Member

@phlmn phlmn commented Dec 10, 2023

No description provided.

@phlmn phlmn requested review from pajowu, rroohhh and anuejn December 11, 2023 09:56
@phlmn phlmn force-pushed the phlmn/worker-graceful-stopping branch from e9afc3e to 2e28b89 Compare December 11, 2023 10:11
@anuejn
Copy link
Member

anuejn commented Dec 13, 2023

Overmind decides to kill the worker in the dev setup after a couple of seconds but I think this is okay

Copy link
Member

@anuejn anuejn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it still possible to end the worker with a keyboard combination after this?
(e.g. ctrl-c ctrl-c)

worker/run.py Show resolved Hide resolved
worker/run.py Show resolved Hide resolved
@phlmn
Copy link
Member Author

phlmn commented Dec 13, 2023

Overmind decides to kill the worker in the dev setup after a couple of seconds but I think this is okay

Yes this is intentional

Is it still possible to end the worker with a keyboard combination after this? (e.g. ctrl-c ctrl-c)

ctrl-c should work as expected and stop the worker immediately since it sends SIGINT

Copy link
Member

@anuejn anuejn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the comments LGTM

@phlmn phlmn force-pushed the phlmn/worker-graceful-stopping branch from 869736d to 06b7ef9 Compare December 17, 2023 21:23
@phlmn phlmn enabled auto-merge December 17, 2023 21:24
@phlmn phlmn added this pull request to the merge queue Dec 17, 2023
Merged via the queue into main with commit bab12c8 Dec 17, 2023
2 checks passed
@phlmn phlmn deleted the phlmn/worker-graceful-stopping branch December 17, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants