Boost workers after 50 tasks
This commit is contained in:
parent
164a9b947f
commit
b261dc5dfd
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class WorkerManager(object):
|
||||||
self.startWorkers()
|
self.startWorkers()
|
||||||
|
|
||||||
def getMaxWorkers(self):
|
def getMaxWorkers(self):
|
||||||
if len(self.tasks) > 100:
|
if len(self.tasks) > 50:
|
||||||
return config.workers * 3
|
return config.workers * 3
|
||||||
else:
|
else:
|
||||||
return config.workers
|
return config.workers
|
||||||
|
|
Loading…
Reference in a new issue