Unanswered
Another Question, How Can I Close A Task With A Specified Status? I Know I Am Able To Do Task.Close() But This Doesn'T Let Me Control The Task'S Status And I Want To Determine It
ImmensePenguin78 I think you can get it with the APIClient
, you can add force
to the call:
` from clearml import Task
from clearml.backend_api.session.client import APIClient
api_client = APIClient()
t = Task.init(project_name="Your project", task_name="Your task name")
t.close()
api_client.tasks.failed(t.id, force=True, status_reason="Your status reason", status_message="Your status message") `
156 Views
0
Answers
3 years ago
one year ago