mirror of
https://github.com/clearml/clearml
synced 2025-04-18 13:24:41 +00:00
Fix Colab docs (#1220)
This commit is contained in:
parent
c600b05386
commit
f51ed621f7
@ -282,7 +282,10 @@
|
||||
"new_task.update_parameters({\"General/max_depth\": 3})\n",
|
||||
"# We can even rename it if we wanted\n",
|
||||
"new_task.rename(f\"Cloned Task\")\n",
|
||||
"# Now enuque it for the colab worker to start working on it!\n",
|
||||
"# Make sure that the diff does not contain Colab invocation!\n",
|
||||
"# cf. https://github.com/allegroai/clearml/issues/1204\n",
|
||||
"new_task.set_script(diff=\"pass\")\n",
|
||||
"# Now enqueue it for the colab worker to start working on it!\n",
|
||||
"Task.enqueue(task=new_task, queue_name=\"default\")"
|
||||
]
|
||||
},
|
||||
@ -329,7 +332,7 @@
|
||||
"# Now we can set up a loop that waits until our task is done!\n",
|
||||
"# If you have enabled notifications on Colab, it will even let you know\n",
|
||||
"# when the ClearML task is done!\n",
|
||||
"while new_task.status not in [\"success\", \"failed\"]:\n",
|
||||
"while new_task.status not in [\"completed\", \"failed\"]:\n",
|
||||
" if new_task.status == \"draft\":\n",
|
||||
" print(\"Task is still in draft mode! You have to enqueue it before the agent can run it.\")\n",
|
||||
"\n",
|
||||
|
Loading…
Reference in New Issue
Block a user