-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: change log level of sigterm signal received from error to warning #3311
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
base: master
Are you sure you want to change the base?
Conversation
|
Can this get merged in @benoitc? This error message causes a lot of error log false positive noise during deployments where SIGTERMs are common. |
|
Hi ! |
|
Any updates on this? Thanks |
|
Please merge this... |
|
For reasons already pointed out in the related issue thread I believe this should not be merged. An active worker being signaled really is an error condition and should be reported as such.
Gunicorn documentation also can and should be improved on how to get this right. But the Gunicorn arbiter should keep reporting with the appropriate log level when a worker runs into a fatal problem. |
Thank you for being responsive and replying. Firstly, I am a complete beginner just using gunicorn to serve my little blog site, so I don't really know what's going on here. It was working and now it isn't.
I just forked gunicorn changed |
Isn't it possible that what's happening now is that after sending SIGTERM to the master, the SIGTERM is propagated to the child process, resulting in an error? Is it possible to determine whether sending SIGTERM directly to the child process is a problem? |
You are thinking of just "receiving SIGTERM", but that is not what goes to the
For the master process, that distinction is easy. The answer is yes. It is a problem, by default, if a live worker is terminated by a signal it could and should have handled. |
Hi,
This PR addresses the issue reported here: #3050.
I have reverted the log level back to warning, as it was previously.
Thansk!