Przeglądaj źródła

proc.dead does not exist for some reason

Ask Solem 9 lat temu
rodzic
commit
49d4c07316
1 zmienionych plików z 1 dodań i 1 usunięć
  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(