Avoid starting new workers on possibly unvalaible file
This commit is contained in:
parent
dc6f3cf0b2
commit
f4bec3bb4d
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ class WorkerManager(object):
|
|||
self.startFindOptional(find_more=True)
|
||||
else:
|
||||
self.startFindOptional()
|
||||
elif self.tasks and not self.workers and worker.task:
|
||||
elif self.tasks and not self.workers and worker.task and len(worker.task["failed"]) < 20:
|
||||
self.log.debug("Starting new workers... (tasks: %s)" % len(self.tasks))
|
||||
self.startWorkers(reason="Removed worker")
|
||||
|
||||
|
|
Loading…
Reference in a new issue