Skip to content

Commit 1320bf9

Browse files
authored
Merge pull request #551 from NERSC/RW-store-compute-nodes
hydrate node-local storage prior to running a podman-hpc pull
2 parents 984102e + a2a5ed8 commit 1320bf9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

backend/launcher/interactem/launcher/templates/launch_agent.sh.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ export HDF5_USE_FILE_LOCKING=FALSE
44
export UV_CACHE_DIR="${TMPDIR:-/tmp}/uv-cache-${SLURM_JOB_ID:-$$}"
55
mkdir -p "$UV_CACHE_DIR"
66
cd {{settings.ENV_FILE_DIR}}
7+
8+
# Pull an image to hydrate the graph root
9+
srun --nodes={{job.num_nodes}} --ntasks-per-node=1 uv run --project {{settings.AGENT_PROJECT_DIR}} podman-hpc pull alpine:latest
710
srun --nodes={{job.num_nodes}} --ntasks-per-node=1 uv run --project {{settings.AGENT_PROJECT_DIR}} interactem-agent

backend/launcher/tests/expected_script.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ export HDF5_USE_FILE_LOCKING=FALSE
1818
export UV_CACHE_DIR="${TMPDIR:-/tmp}/uv-cache-${SLURM_JOB_ID:-$$}"
1919
mkdir -p "$UV_CACHE_DIR"
2020
cd /path/to/.env
21+
22+
# Pull an image to hydrate the graph root
23+
srun --nodes=2 --ntasks-per-node=1 uv run --project /path/to/interactEM/backend/agent podman-hpc pull alpine:latest
2124
srun --nodes=2 --ntasks-per-node=1 uv run --project /path/to/interactEM/backend/agent interactem-agent

0 commit comments

Comments
 (0)