浏览代码

Solo pool: Hardcode limit/num_processes to 1 for correct prefetch count calculations. Closes #2925

Ask Solem 9 年之前
父节点
当前提交
ed863f219b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/concurrency/solo.py

+ 1 - 0
celery/concurrency/solo.py

@@ -22,6 +22,7 @@ class TaskPool(BasePool):
     def __init__(self, *args, **kwargs):
         super(TaskPool, self).__init__(*args, **kwargs)
         self.on_apply = apply_target
+        self.limit = 1
 
     def _get_info(self):
         return {'max-concurrency': 1,