Fix Colab docs (#1220)

This commit is contained in:
Toni Kukurin 2024-03-05 07:22:55 +01:00 committed by GitHub
parent c600b05386
commit f51ed621f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",