Jelajahi Sumber

Fixes typo app.clock.lock -> app.clock.mutex

Ask Solem 11 tahun lalu
induk
melakukan
4323144a9e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      celery/worker/components.py

+ 1 - 1
celery/worker/components.py

@@ -86,7 +86,7 @@ class Hub(bootsteps.StartStopStep):
 
     def _patch_thread_primitives(self, w):
         # make clock use dummy lock
-        w.app.clock.lock = DummyLock()
+        w.app.clock.mutex = DummyLock()
         # multiprocessing's ApplyResult uses this lock.
         try:
             from billiard import pool