Fix status message check containing "worker" (deprecated test)

This commit is contained in:
allegroai 2020-05-31 13:58:39 +03:00
parent 799b292146
commit 860ff8911c

View File

@ -263,7 +263,7 @@ class TaskStopSignal(object):
) )
return TaskStopReason.stopped 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") self.command.log("unexpected status change, task will terminate")
return TaskStopReason.status_changed return TaskStopReason.status_changed