mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix Pipeline component is treated as aborted if running on instance that was killed externally (e.g. spot instances dying)
This commit is contained in:
@@ -1637,16 +1637,18 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
def get_status(self):
|
||||
# type: () -> str
|
||||
"""
|
||||
Return The task status without refreshing the entire Task object object (only the status property)
|
||||
Return The task status without refreshing the entire Task object (only the status property)
|
||||
|
||||
TaskStatusEnum: ["created", "in_progress", "stopped", "closed", "failed", "completed",
|
||||
"queued", "published", "publishing", "unknown"]
|
||||
|
||||
:return: str: Task status as string (TaskStatusEnum)
|
||||
"""
|
||||
status = self._get_status()[0]
|
||||
status, status_message = self._get_status()
|
||||
if self._data:
|
||||
self._data.status = status
|
||||
self._data.status_message = str(status_message)
|
||||
|
||||
return str(status)
|
||||
|
||||
def get_output_log_web_page(self):
|
||||
|
||||
Reference in New Issue
Block a user