-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
SIGTERM does not do a warm shutdown fix #5423
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
Conversation
|
sorry this cause unit test failure :) |
|
Is just a lambda with the logging call would handle that SIGTERM correctly?! |
|
No , the lambda is what happens when the sigterm is receive.
https://docs.python.org/2/library/signal.html
On Fri, 2 Aug 2019 at 15:02 Islam Mohamed ***@***.***> wrote:
Is just a lambda with the logging call would handle that SIGTERM
correctly?!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5423?email_source=notifications&email_token=AEBNDBMMVL24BWZC725TEG3QCQO4ZA5CNFSM4HC4V3P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3NRMLQ#issuecomment-517674542>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEBNDBIMKHVHYC6CEOGBWZLQCQO4ZANCNFSM4HC4V3PQ>
.
--
|
Understood, Maybe my comment wasn't clear. I'm wondering how the signal handler which is doing nothing but logging would help to handle the SIGTERM for tasks correctly? |
|
No, the lambda is only printing the log for the user |
I think he's asking why you're not doing anything besides logging. I would expect the worker to exit after finishing the current task but it looks like it would just log this and continue running indefinitely. |
Exactly, logging wouldn't be enough and considered as a solution for handling SIGTERM properly |
|
Let's breathe...
Now after my fix 1 and 2 happens as it happens previously. |
Thank you so much for explaining it, Makes total sense 👍 |
Fixes #2700
Currently on receiving SIGTERM task is killed cause the SIGTERM not handled in the task