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
Hello, I'M Trying To Use The Agent To Orchestrate Tasks - Our Install Is Quite Complicated And I'Ve Wrapped It All Up With The Code In A Docker Container; Is There A Way To Get The Agent To Just Run A Command In The Container Rather Than Try To Build/Inst

Hello, I'm trying to use the agent to orchestrate tasks - our install is quite complicated and I've wrapped it all up with the code in a docker container; is there a way to get the agent to just run a command in the container rather than try to build/install/etc?

  
  
Posted 6 months ago
Votes Newest

Answers 25


so i guess it need to be set inside the container

  
  
Posted 6 months ago

So, removed docker to debug - I couldn't get the agent to use the python and virtualenv I wanted without also running the agent from that same virtualenv

  
  
Posted 6 months ago

there is a tricky thing: clearml-agent should not be running from a venv itself ... don't remember where I read that doc

  
  
Posted 6 months ago

thx for that info

  
  
Posted 6 months ago

Try to set CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL=true in the terminal start clearml-agent
See None

  
  
Posted 6 months ago

yeah, I was using the system python initially

  
  
Posted 6 months ago

ok, interesting overloading of that param, looking at the source code confirms that behavior

  
  
Posted 6 months ago

tried setting python_binary

  
  
Posted 6 months ago

yes

  
  
Posted 6 months ago

hmm, interesting, I was just sepcifying CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL=true

  
  
Posted 6 months ago

one specify the venv python, the other tell it to not do anything

  
  
Posted 6 months ago

depend on how the agent is launched ...

  
  
Posted 6 months ago

your need both in certain case

  
  
Posted 6 months ago

in that case yes. What happen is that in docker mode:
you run a clearml agent, that then receive a task
create a container
install another agent inside that container
then run that second agent inside the container
that second agent then pull the task and do the usuall build/install

CLEARML_AGENT_SKIP_PYTHON_ENV_INSTALL=true need to be set on that second agent somehow ...

  
  
Posted 6 months ago

it always wanted to use the system python

  
  
Posted 6 months ago

are you using the agent docker mode ?

  
  
Posted 6 months ago

ok, thx, need to think about this a bit more

  
  
Posted 6 months ago

inside the script that launch the agent, I set all the env need (aka disable installation with the var above)

  
  
Posted 6 months ago

in my case, I set eveything inside the container, including the agent and not using docker mode altogether.
When my container start, it start the agent inside it in "normal" mode

  
  
Posted 6 months ago

CLEARML_AGENT_SKIP_PIP_VENV_INSTALL=/path/to/my/vemv/bin/python3.12 clearml-agent bla

  
  
Posted 6 months ago

Hmm, it seems like it's still trying to pip install my requirements int he container

  
  
Posted 6 months ago

do I need to set it in the container as well?

  
  
Posted 6 months ago

guess I could set it in the dockerfile

  
  
Posted 6 months ago

I use CLEARML_AGENT_SKIP_PIP_VENV_INSTALL=/path/to/my/vemv/bin/python3.12 and it work for me

  
  
Posted 6 months ago

but I couldn't get it to use my pre-created virutalenv

  
  
Posted 6 months ago
522 Views
25 Answers
6 months ago
6 months ago
Tags