Explorar o código

gevent does not pass standard signal handler arguments. Closes #1388

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
3ebe8ce761
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/apps/worker.py

+ 1 - 1
celery/apps/worker.py

@@ -253,7 +253,7 @@ class Worker(WorkController):
 def _shutdown_handler(worker, sig='TERM', how='Warm',
                       exc=SystemExit, callback=None):
 
-    def _handle_request(signum, frame):
+    def _handle_request(*args):
         with in_sighandler():
             from celery.worker import state
             if current_process()._name == 'MainProcess':