From fa0d5d84692cac25b923dd7adf6186f8df4e71b9 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 11 Feb 2021 14:40:09 +0200 Subject: [PATCH] Fix --detached not supported on Windows, ignore and issue warning --- clearml_agent/commands/worker.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clearml_agent/commands/worker.py b/clearml_agent/commands/worker.py index d3858a1..202d676 100644 --- a/clearml_agent/commands/worker.py +++ b/clearml_agent/commands/worker.py @@ -915,6 +915,11 @@ class Worker(ServiceCommandSection): if not self._session.debug_mode: self._temp_cleanup_list.append(name) + # on widows we do nothing + if detached and is_windows_platform(): + print('Detached not supported on Windows, ignoring --detached') + detached = False + if not detached: # redirect std out/err to new file sys.stdout = sys.stderr = out_file