Add env var in case we're running a service task

This commit is contained in:
allegroai 2023-11-14 11:44:36 +02:00
parent 9ad49a0d21
commit 996bb797c3

View File

@ -4102,6 +4102,9 @@ class Worker(ServiceCommandSection):
if skip_pip_venv_install:
base_cmd += ['-e', '{}={}'.format(ENV_AGENT_SKIP_PIP_VENV_INSTALL.vars[0], skip_pip_venv_install)]
if self._services_mode:
base_cmd += ['-e', 'CLEARML_AGENT_SERVICE_TASK=1']
# if we are running a RC version, install the same version in the docker
# because the default latest, will be a release version (not RC)
specify_version = ''