mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-07 13:26:08 +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()
|
||||
except Exception as ex:
|
||||
self.command.log_traceback(ex)
|
||||
# make sure we break nothing
|
||||
return TaskStopSignal.default
|
||||
|
||||
def _test(self):
|
||||
# type: () -> TaskStopReason
|
||||
@ -780,7 +782,7 @@ class Worker(ServiceCommandSection):
|
||||
if daemon:
|
||||
self.send_logs(
|
||||
task_id=task_id,
|
||||
lines=["User aborted: stopping task\n"],
|
||||
lines=["User aborted: stopping task ({})\n".format(str(stop_reason))],
|
||||
level="ERROR",
|
||||
)
|
||||
kill_all_child_processes(process.pid)
|
||||
|
Loading…
Reference in New Issue
Block a user