Hi ImmensePenguin78 - what status are you looking for?
Are you talking about failing a task from it's own code?
TimelyPenguin76
Wouldn'ttask.mark_failed() task.close()
Work?
Hi SuccessfulKoala55 ,
failed. I read in the docs I can use mark_failed .
How should I use it correctly with task.close()?
Or should the task.close appear before the task.mark_failed?
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") `