CostlyOstrich36 You're definitely not stupid! Thanks for all your help around here !!
and I think stopped state allows me to keep my artifacts!
CluelessElephant89 you're absolutely right! Now I feel stupid for not thinking about it ^^
CostlyOstrich36 okay gotcha, actually, I found a workaround! I just use a_task.mark_stopped(force=True)
or evena_task.mark_started(force=True)
works too!
CluelessElephant89 , well that looks like a bug
I'll sort it out on our end 🙂
You could try using the API reference:
https://clear.ml/docs/latest/docs/references/api/tasks#post-tasksreset
Already tested that it works. However please notice that it will reset the task removing ALL outputs
CluelessElephant89 , Hi 🙂
An experiment cannot be 'unpublished' through the UI since it's a 'finalizing' action that the UI also gives a popup regarding. I think you can reset the task with Task.reset(force=True)
through the SDK. This however will remove all logs/metrics.
https://clear.ml/docs/latest/docs/references/sdk/task#reset
What is the reason you would like to 'un-publish' and what would you want the new state to be, completed?
CostlyOstrich36 Oh, im just thinking if it was super late at night and I'm at near 0% brain power and accidentally published the wrong experiment (even though maybe I told myself not to publish until I'm not so tired) haha. It would be nice to undo it without having to delete it completely.
And just curious, I tried out the reset code, but I get an error.
Here's my code:
from clearml import Task a_task = Task.get_task(task_id='7dae94daf28144b09011e0582bcd130e') a_task.reset(force=True)
Error output:
clearml.backend_interface.session.SendError: Action failed <400/110: tasks.reset/v1.0 (Invalid task status: task_id=7dae94daf28144b09011e0582bcd130e, status=published)> (force=False, clear_all=False, task=7dae94daf28144b09011e0582bcd130e)