mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
like in threaded workers let some time to the vm to release locks
applied similar change to 8936d8274770bec5fced09b28eb687b23bef20c1 fix #981
This commit is contained in:
parent
803a2d71b0
commit
a459986cfd
@ -7,6 +7,7 @@ from datetime import datetime
|
|||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
from random import randint
|
from random import randint
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +150,7 @@ class Worker(object):
|
|||||||
self.alive = False
|
self.alive = False
|
||||||
# worker_int callback
|
# worker_int callback
|
||||||
self.cfg.worker_int(self)
|
self.cfg.worker_int(self)
|
||||||
|
time.sleep(0.1)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def handle_abort(self, sig, frame):
|
def handle_abort(self, sig, frame):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user