Skip to content

upon reload send a SIGTERM first, then a SIGKILL as a last resort#48

Merged
mmerickel merged 6 commits into
Pylons:masterfrom
mmerickel:sigkill
Mar 7, 2019
Merged

upon reload send a SIGTERM first, then a SIGKILL as a last resort#48
mmerickel merged 6 commits into
Pylons:masterfrom
mmerickel:sigkill

Conversation

@mmerickel

Copy link
Copy Markdown
Member

fixes #47

This changes the shutdown process when a reload is triggered to a graceful SIGTERM, followed by shutdown_interval, then SIGKILL if necessary. It also modifies the SIGINT process to wait shutdown_interval seconds instead of reload_inteval seconds and then issues a SIGKILL instead of a SIGTERM. Summary:

Ctrl-C -> SIGINT -> shutdown_interval -> SIGKILL
file change / reload -> SIGTERM -> shutdown_interval -> SIGKILL

@mmerickel mmerickel merged commit c10ac9d into Pylons:master Mar 7, 2019
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.

Worker termination by reloader may hang forever

2 participants