From 176b4a4cdec9c4303a946a82e22a579ae22c3355 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 16 Jun 2021 18:32:29 +0300 Subject: [PATCH] Fix --services-mode when the execute agent fails when starting to run with error code 0 --- clearml_agent/commands/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml_agent/commands/worker.py b/clearml_agent/commands/worker.py index 7c45bc8..17e0949 100644 --- a/clearml_agent/commands/worker.py +++ b/clearml_agent/commands/worker.py @@ -1423,7 +1423,7 @@ class Worker(ServiceCommandSection): # get diff from previous poll printed_lines, stdout_pos_count = _print_file(stdout_path, stdout_pos_count) - if self._services_mode and not stopping and not status: + if self._services_mode and not stopping and status is None: # if the internal agent started, we stop logging, it will take over logging. # if the internal agent started running the task itself, it will return status==0, # then we can quit the monitoring loop of this process