소스 검색

But disable mediator if rate limits disabled...

Ask Solem 13 년 전
부모
커밋
ea2b8f272c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/worker/__init__.py

+ 1 - 1
celery/worker/__init__.py

@@ -196,11 +196,11 @@ class Queues(abstract.Component):
         if w.disable_rate_limits:
             w.ready_queue = FastQueue()
             if w.use_eventloop:
+                w.start_mediator = False
                 if w.pool_putlocks and w.pool_cls.uses_semaphore:
                     w.ready_queue.put = w.process_task_sem
                 else:
                     w.ready_queue.put = w.process_task
-                    w.start_mediator = False
             elif not w.pool_cls.requires_mediator:
                 # just send task directly to pool, skip the mediator.
                 w.ready_queue.put = w.process_task