Browse Source

Rate limit support for eventlet/gevent

Ask Solem 12 years ago
parent
commit
926817448e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      celery/worker/__init__.py

+ 2 - 1
celery/worker/__init__.py

@@ -208,7 +208,8 @@ class Queues(bootsteps.Component):
         BucketType = TaskBucket
         w.start_mediator = True
         if not w.pool_cls.rlimit_safe:
-            w.disable_rate_limits = True
+            w.start_mediator = False
+            BucketType = AsyncTaskBucket
         process_task = w.process_task
         if w.use_eventloop:
             BucketType = AsyncTaskBucket