Forráskód Böngészése

Fixes bug with solo/threads pool. Closes #1548

Ask Solem 11 éve
szülő
commit
aecdf13082
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -107,7 +107,7 @@ class Pool(bootsteps.StartStopComponent):
         add_reader = hub.add_reader
         remove = hub.remove
         now = time.time
-        cache = pool._pool._cache
+        cache = getattr(pool._pool, '_cache', None)
 
         # did_start_ok will verify that pool processes were able to start,
         # but this will only work the first time we start, as