From f4bec3bb4de2ccd87b8a77cebf0e7d3b9aef74ba Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 8 Aug 2019 14:35:04 +0200 Subject: [PATCH] Avoid starting new workers on possibly unvalaible file --- src/Worker/WorkerManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/WorkerManager.py b/src/Worker/WorkerManager.py index c514fd25..236b048a 100644 --- a/src/Worker/WorkerManager.py +++ b/src/Worker/WorkerManager.py @@ -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")