Browse Source

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

Ask Solem 12 năm trước cách đây
mục cha
commit
3ebe8ce761
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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':