Skip to content

Commit 9c0198d

Browse files
committed
set the UV_CACHE_DIR to /tmp to avoid cache problems on compute nodes
```sh error: Could not acquire lock Caused by: Could not acquire lock for `~/.cache/uv` at `~/.cache/uv/.lock` Caused by: failed to lock `~/.cache/uv/.lock`: Unknown error 524 (os error 524) ```
1 parent f2c09d7 commit 9c0198d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% include "header.sh.j2" %}
22

33
export HDF5_USE_FILE_LOCKING=FALSE
4+
export UV_CACHE_DIR="${TMPDIR:-/tmp}/uv-cache-${SLURM_JOB_ID:-$$}"
5+
mkdir -p "$UV_CACHE_DIR"
46
cd {{settings.ENV_FILE_DIR}}
57
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
#SBATCH --exclusive
1616

1717
export HDF5_USE_FILE_LOCKING=FALSE
18+
export UV_CACHE_DIR="${TMPDIR:-/tmp}/uv-cache-${SLURM_JOB_ID:-$$}"
19+
mkdir -p "$UV_CACHE_DIR"
1820
cd /path/to/.env
1921
srun --nodes=2 --ntasks-per-node=1 uv run --project /path/to/interactEM/backend/agent interactem-agent

0 commit comments

Comments
 (0)