From 860ff8911c9e21306c3092254e483079a529066d Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sun, 31 May 2020 13:58:39 +0300 Subject: [PATCH] Fix status message check containing "worker" (deprecated test) --- trains_agent/commands/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trains_agent/commands/worker.py b/trains_agent/commands/worker.py index f489c44..e1fb92e 100644 --- a/trains_agent/commands/worker.py +++ b/trains_agent/commands/worker.py @@ -263,7 +263,7 @@ class TaskStopSignal(object): ) return TaskStopReason.stopped - if status in self.unexpected_statuses and "worker" not in message: + if status in self.unexpected_statuses: ## and "worker" not in message: self.command.log("unexpected status change, task will terminate") return TaskStopReason.status_changed