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:
allegroai
2022-08-20 22:56:53 +03:00
parent 1cc87c9a21
commit 5a83aa433d
3 changed files with 51 additions and 21 deletions

View File

@@ -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):