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
Answered
Hi, Can Clearml Run Docker Container On Agent Without Specifying Script Path? Because My Main.Py Script Is Already Inside Docker Image And I Can'T Run Clearml-Task: Clearml-Task --Project Test --Name Test --Queue My_Queue --Docker My_Image Here I Have An

Hi, can Clearml run docker container on agent without specifying script path? Because my main.py script is already inside docker image and I can't run clearml-task: clearml-task --project test --name test --queue my_queue --docker my_image Here I have an error "Error: Entry point script not provided"

  
  
Posted 2 months ago
Votes Newest

Answers 4


@<1523701070390366208:profile|CostlyOstrich36> Thanks for response. Can I ask a second question? I have script main.py in my docker image in this path "/", but when clearml starts my container on agent it tries to execute in this path "/root/.clearml/venvs-builds/3.10/code/" Do you know how to change this behavior? For example I tried the --cwd argument, but Clearml-task tells me that "repository(Error: working directory '{}', must be relative to repository root)", but I don't use repository...

  
  
Posted 2 months ago

And about agent... Agent is listening queue, but the problem that I cant put in queue task without --script or module, here is a code of clearml-task " if raise_on_missing_entries and not base_task_id:
if not script and not module:
raise ValueError("Entry point script not provided")
if not repo and not folder and (script and not Path(script).is_file()):
raise ValueError("Script file '{}' could not be found".format(script))" But what to do if script inside docker image already?))

  
  
Posted 2 months ago

Hi @<1742355077231808512:profile|DisturbedLizard6> , you can achieve this using the following env var:
CLEARML_AGENT_FORCE_EXEC_SCRIPT
None

  
  
Posted 2 months ago

As I understand its CLEARML_AGENT_FORCE_CODE_DIR? From documentation I try to understand, should I specify these variables in agent Dockerfile or I can dynamically specify it?

  
  
Posted 2 months ago
107 Views
4 Answers
2 months ago
2 months ago
Tags