Explorar o código

Fixes hardcoded option

Mher Movsisyan %!s(int64=12) %!d(string=hai) anos
pai
achega
746c151e30
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/events/state.py

+ 1 - 1
celery/events/state.py

@@ -277,7 +277,7 @@ class State(object):
     def __init__(self, callback=None,
     def __init__(self, callback=None,
                  max_workers_in_memory=5000, max_tasks_in_memory=10000):
                  max_workers_in_memory=5000, max_tasks_in_memory=10000):
         self.max_workers_in_memory = max_workers_in_memory
         self.max_workers_in_memory = max_workers_in_memory
-        self.max_tasks_in_memory = 10000
+        self.max_tasks_in_memory = max_tasks_in_memory
         self.workers = LRUCache(limit=self.max_workers_in_memory)
         self.workers = LRUCache(limit=self.max_workers_in_memory)
         self.tasks = LRUCache(limit=self.max_tasks_in_memory)
         self.tasks = LRUCache(limit=self.max_tasks_in_memory)
         self._taskheap = []
         self._taskheap = []