mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix network issues causing Task to stop on status change even though no status change has occurred (#535)
This commit is contained in:
parent
e4df21ea52
commit
5953dc6eef
@ -31,6 +31,10 @@ class TaskStopSignal(object):
|
||||
# we use internal status read, so we do not need to constantly pull the entire task object,
|
||||
# it might be large, and we want to also avoid the edit lock on it.
|
||||
status, message = self.task._get_status()
|
||||
# if we did not get a proper status, return and recheck later
|
||||
if status is None and message is None:
|
||||
return None
|
||||
|
||||
status = str(status)
|
||||
message = str(message)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user