AgitatedDove14 hello, I think I got this to work. But just to make sure I am doing this correctly ... in order for me to get the task_id, do i have to upload and run a script with its default value first (since I don't have an initial task id), then clone it, edit the configuration inside that newly cloned one, get the id of the clone, and pass this into my script as the task_id and run it from my machine?
Is there a way do this without running it on my machine? Like the another user can edit it from the UI, enqueue it to an agent, and the agent can run the script? All without having the original script to run? Thanks.
o i have to upload and run a script with its default value first (since I don't have an initial task id), then clone it, edit the configuration inside that newly cloned one, get the id of the clone, and pass this into my script as the task_id and run it from my machine?
Correct. You can also create it (from code), "Reset" it (right click in the UI) and then edit it.
Is there a way do this without running it on my machine?
check clearml-task
it is a CLI that will create a Task from the code on your machine/repo and enqueue it for you 🙂
https://clear.ml/docs/latest/docs/apps/clearml_task
Hi CluelessElephant89
When you edit the args (General section) in the UI, you are editing the args for "remote execution"
(i.e. when executed by the agent, the args
dict will get the values from the UI , as oppsed to "manual execution" where there UI gets the values from code)
In order to simulate the "remote execution" inside your development environment
Try:
` from clearml import Task
simulate remote execution of a specific Task instance
Task.debug_simulate_remote_task(task_id='REPLACE WITH TASK ID FROM UI')
task = Task.init(project_name="project1", task_name="task1")
... `