Boost workers after 50 tasks

This commit is contained in:
shortcutme 2017-04-13 16:27:05 +02:00
parent 164a9b947f
commit b261dc5dfd
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -132,7 +132,7 @@ class WorkerManager(object):
self.startWorkers()
def getMaxWorkers(self):
if len(self.tasks) > 100:
if len(self.tasks) > 50:
return config.workers * 3
else:
return config.workers