mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-12 07:38:04 +00:00
Do not stop experiments if network is down
This commit is contained in:
parent
714c6a05d0
commit
d558c66d3c
@ -229,6 +229,8 @@ class TaskStopSignal(object):
|
|||||||
return self._test()
|
return self._test()
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.command.log_traceback(ex)
|
self.command.log_traceback(ex)
|
||||||
|
# make sure we break nothing
|
||||||
|
return TaskStopSignal.default
|
||||||
|
|
||||||
def _test(self):
|
def _test(self):
|
||||||
# type: () -> TaskStopReason
|
# type: () -> TaskStopReason
|
||||||
@ -780,7 +782,7 @@ class Worker(ServiceCommandSection):
|
|||||||
if daemon:
|
if daemon:
|
||||||
self.send_logs(
|
self.send_logs(
|
||||||
task_id=task_id,
|
task_id=task_id,
|
||||||
lines=["User aborted: stopping task\n"],
|
lines=["User aborted: stopping task ({})\n".format(str(stop_reason))],
|
||||||
level="ERROR",
|
level="ERROR",
|
||||||
)
|
)
|
||||||
kill_all_child_processes(process.pid)
|
kill_all_child_processes(process.pid)
|
||||||
|
Loading…
Reference in New Issue
Block a user