Explorar el Código

Fixes NameError

Ask Solem hace 12 años
padre
commit
7939b4e9e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -157,7 +157,7 @@ class Pool(bootsteps.StartStopComponent):
             import _billiard
         except ImportError:
             # billiard C extension not installed
-            if worker.maxtasksperchild:
+            if w.maxtasksperchild:
                 logger.warning(MAXTASKS_NO_BILLIARD)
         _quick_put = pool._pool._quick_put
         def quick_put(obj):