mirror of
https://github.com/clearml/clearml-agent
synced 2025-06-26 18:16:15 +00:00
Fix --detached not supported on Windows, ignore and issue warning
This commit is contained in:
parent
8229843018
commit
fa0d5d8469
@ -915,6 +915,11 @@ class Worker(ServiceCommandSection):
|
|||||||
if not self._session.debug_mode:
|
if not self._session.debug_mode:
|
||||||
self._temp_cleanup_list.append(name)
|
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:
|
if not detached:
|
||||||
# redirect std out/err to new file
|
# redirect std out/err to new file
|
||||||
sys.stdout = sys.stderr = out_file
|
sys.stdout = sys.stderr = out_file
|
||||||
|
Loading…
Reference in New Issue
Block a user