mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 10:43:10 +00:00
Fix tasks.failed error for task that was never started
This commit is contained in:
parent
e6c0f1b6d8
commit
d7ddfde26e
@ -129,6 +129,8 @@ def set_task_status_from_call(
|
||||
):
|
||||
fields_resolver.add_fields(
|
||||
duration=int((task.started - datetime.utcnow()).total_seconds())
|
||||
if task.started
|
||||
else 0
|
||||
)
|
||||
|
||||
status_reason = request.status_reason
|
||||
|
Loading…
Reference in New Issue
Block a user