瀏覽代碼

proc.dead does not exist for some reason

Ask Solem 9 年之前
父節點
當前提交
49d4c07316
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/concurrency/asynpool.py

+ 1 - 1
celery/concurrency/asynpool.py

@@ -576,7 +576,7 @@ class AsynPool(_pool.Pool):
 
         def on_process_down(proc):
             """Called when a worker process exits."""
-            if proc.dead:
+            if getattr(proc, 'dead', None):
                 return
             process_flush_queues(proc)
             _remove_from_index(