Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Hello, When I Create A Task On A New Server I Use, The Task Fails To Auto Detect The Working Directory And The Repository, As In The Attached Image. Consequently, I Cannot Run The Task In Clearml Agent, Getting "


When I create a task on a new server I use, the task fails to auto detect the working directory and the repository, as in the attached image.

Consequently, I cannot run the task in clearml agent, getting " ERROR: Can not run task without repository or literal script in script.diff" :
repository = branch = version_num = tag = docker_cmd = /home/rdekel/anaconda3/envs/P1 entry_point = working_dir = Executing Conda: /home/rdekel/anaconda3/condabin/conda env remove -p /home/rdekel/temp_cache/.trains/venvs-builds.6/3.7 --quiet --json Using pre-existing Conda environment from /home/rdekel/anaconda3/envs/P1 clearml_agent: ERROR: Can not run task without repository or literal script inscript.diff
I can reproduce this problem with a very simple code, running:
import multiprocessing as mp from clearml import Task mp.set_start_method('spawn') task = Task.init("OMD", task_name="bla") print(f"task.get_script={task.get_script()}") task.close()Yields:
task.get_script={'working_dir': None, 'entry_point': '', 'branch': None, 'repository': ''}As you can see, nothing in the working directory or the other fields.

This problem happens on a specific server, the other servers I use detect the repository as needed.

I tried updating clearml to the latest version and rebooting the machine, and no help.

It would be really helpful if you can help in any way, as I currently have 4 X A100 that sit idle and wait... 🥲

Thanks a lot,

Posted one year ago
Votes Newest

Answers 5


Thanks Martin.

As you said, changing the order indeed resulted in a working code snippet that correctly identifies the working directory.

From there, it was easy to debug and solve the actual problem.


Posted one year ago

StaleMole4 you are printing the values before Task.init had the chance to populate it.
Basically try moving the print after closing the Task (closing the tasks waits for the async update)
Make sense ?

Posted one year ago

EDIT: Testing.

Posted one year ago


Posted one year ago

Also I would suggest using Task.execute_remotely

Posted one year ago
5 Answers
one year ago
4 months ago
Similar posts