Explorar el Código

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

Ask Solem hace 9 años
padre
commit
ed863f219b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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,