@<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...
Hi @<1742355077231808512:profile|DisturbedLizard6> , you can achieve this using the following env var:
CLEARML_AGENT_FORCE_EXEC_SCRIPT
None
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?
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?))