mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixed stop all servers (gevent worker).
This commit is contained in:
parent
a33211b3f3
commit
b6d72504eb
@ -110,7 +110,7 @@ class GeventWorker(AsyncWorker):
|
|||||||
|
|
||||||
# Force kill all active the handlers
|
# Force kill all active the handlers
|
||||||
self.log.warning("Worker graceful timeout (pid:%s)" % self.pid)
|
self.log.warning("Worker graceful timeout (pid:%s)" % self.pid)
|
||||||
server.stop(timeout=1)
|
[server.stop(timeout=1) for server in servers]
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user