File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
nemo_run/run/ray/templates
test/core/execution/artifacts Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,11 @@ else
473473# Args 1-N launch on worker nodes (nodes 1 through N-1)
474474# Optional: set COMMAND='...' to run non-interactively instead of opening an interactive shell
475475
476+ # Helper to get container PID
477+ get_container_pid() {
478+ local node=\$ 1
479+ srun --overlap --nodes=1 -w "\$ node" --jobid $SLURM_JOB_ID bash -c "enroot list -f | awk 'NR>1 && \\\$ 2 ~ /^[0-9]+\\\$ / {print \\\$ 2; exit}'"
480+ }
476481
477482WORKER_NUM=\\\$ {1:-}
478483if [[ -z "\\\$ WORKER_NUM" ]]; then
Original file line number Diff line number Diff line change @@ -449,6 +449,11 @@ else
449449# Args 1-N launch on worker nodes (nodes 1 through N-1)
450450# Optional: set COMMAND='...' to run non-interactively instead of opening an interactive shell
451451
452+ # Helper to get container PID
453+ get_container_pid() {
454+ local node=\$ 1
455+ srun --overlap --nodes=1 -w "\$ node" --jobid $SLURM_JOB_ID bash -c "enroot list -f | awk 'NR>1 && \\\$ 2 ~ /^[0-9]+\\\$ / {print \\\$ 2; exit}'"
456+ }
452457
453458WORKER_NUM=\\\$ {1:-}
454459if [[ -z "\\\$ WORKER_NUM" ]]; then
482487 echo " bash $CLUSTER_DIR /scripts/${SLURM_JOB_ID} -attach.sh 1 # to attach to worker 1"
483488 echo " bash $CLUSTER_DIR /scripts/${SLURM_JOB_ID} -attach.sh 2 # to attach to worker 2, etc."
484489 sleep infinity
485- fi
490+ fi
You can’t perform that action at this time.
0 commit comments