Skip to content

Commit 283c0a1

Browse files
authored
Allow multiple docker experiments with same task names to run at the same time (#124)
Signed-off-by: Hemil Desai <[email protected]>
1 parent 5b40e95 commit 283c0a1

File tree

1 file changed

+4
-1
lines changed
  • src/nemo_run/run/torchx_backend/schedulers

1 file changed

+4
-1
lines changed

src/nemo_run/run/torchx_backend/schedulers/docker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def _submit_dryrun(self, app: AppDef, cfg: Executor) -> AppDryRunInfo[DockerJobR
8888
cmd = [role.entrypoint] + role.args
8989
containers.append(
9090
DockerContainer(
91-
name=role.name, command=cmd, executor=_current_executor, extra_env=role.env
91+
name=f"{executor.experiment_id}_{role.name}",
92+
command=cmd,
93+
executor=_current_executor,
94+
extra_env=role.env,
9295
)
9396
)
9497

0 commit comments

Comments
 (0)