mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Workers won't be killed if timeout set to 0
This commit is contained in:
parent
8f4edfa0bf
commit
274e43489b
@ -389,6 +389,8 @@ class Arbiter(object):
|
||||
"""\
|
||||
Kill unused/idle workers
|
||||
"""
|
||||
if not self.timeout:
|
||||
return
|
||||
for (pid, worker) in self.WORKERS.items():
|
||||
try:
|
||||
if time.time() - worker.tmp.last_update() <= self.timeout:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user