SIGTERM does not do a warm shutdown fix#5423
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