From f51ed621f78301a3eb81c0952c35d5de9994d461 Mon Sep 17 00:00:00 2001 From: Toni Kukurin Date: Tue, 5 Mar 2024 07:22:55 +0100 Subject: [PATCH] Fix Colab docs (#1220) --- docs/tutorials/Getting_Started_3_Remote_Execution.ipynb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/Getting_Started_3_Remote_Execution.ipynb b/docs/tutorials/Getting_Started_3_Remote_Execution.ipynb index b5b1771e..f43498b4 100644 --- a/docs/tutorials/Getting_Started_3_Remote_Execution.ipynb +++ b/docs/tutorials/Getting_Started_3_Remote_Execution.ipynb @@ -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", @@ -452,4 +455,4 @@ "nbformat": 4, "nbformat_minor": 0 } - \ No newline at end of file +