allegroai / clearml

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution

Home Page:https://clear.ml/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task.set_script bug

MaxVanHoucke opened this issue · comments

Describe the bug

When using Task.set_script and setting some parameters to the empty string (""), the values are not reset as would be expected. In the method code, the empty string is replaced by a python None, which seems to do nothing in the API call.

To reproduce

After cloning a task that has a repository, try to reset the repository by calling task.set_script(repository="")

Expected behaviour

The repository entry should be cleared, as mentioned in the docs.

Environment

  • Server type: self hosted
  • ClearML SDK Version: 1.9.0
  • ClearML Server Version: WebApp: 1.10.1-359 • Server: 1.10.1-359 • API: 2.24
  • Python Version: 3.8
  • OS: Macos

Thanks for reporting @MaxVanHoucke.

We'll update when a fix is available.

Thanks! For now I'm using the following workaround

script = new_task.data.script
script.repository = ''
new_task._update_script(script)