-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
About gunicorn [CRITICAL] Worker Timeout #1965
Comments
This probably cannot be fixed right now. The workers The best workaround is probably to use a time daemon that handles smoothing the system clock changes. |
hrm wouldn’t fic the file myime to a monotonic timestamp work?
On Wed 23 Jan 2019 at 07:15, Randall Leeds ***@***.***> wrote:
This probably cannot be fixed right now. The workers chmod a temporary
file to mark liveness so it's not possible to use a monotonic time there.
The best workaround is probably to use a time daemon that handles
smoothing the system clock changes.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1965 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA4osEE-2PpUbFKeGGD5mZpVW_2Wu6qks5vF_37gaJpZM4aODxy>
.
--
Sent from my Mobile
|
Maybe it would work. I am reading now that https://docs.python.org/3/library/os.html#os.utime We could set the time using |
@skytoup do you want to try to make a patch? |
Fix #1965: About gunicorn [CRITICAL] Worker Timeout
Recently, I found that my worker appears timeout at about 9 o 'clock every day.
Finally, one day I found that when the system time was modified (more than the current time), the worker unexpectedly appeared timeout! At this time, I can confirm that the daily worker timeout is caused by time synchronization.
I checked the relevant source code and found that the system time was used to determine whether the worker was timeout.
gunicorn/gunicorn/arbiter.py
Line 497 in 7af6f65
The text was updated successfully, but these errors were encountered: