Skip to content

Commit 729da70

Browse files
Update quickrun.sbatch to streamline output handling and resume functionality. The script now removes stale result JSON files to allow fresh output while preserving checkpoint data for resumed tasks.
1 parent 8e886be commit 729da70

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/openfe/quickrun.sbatch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ filename=$(basename "${FILE}" .json)
7171
run_dir="${RESULTS_DIR}/${filename}/replica_${SLURM_ARRAY_TASK_ID}"
7272
mkdir -p "${run_dir}"
7373

74-
# Remove stale result JSON from previous failed runs so openfe can write to -o.
75-
# Checkpoint data in -d is preserved, allowing openfe to resume.
74+
# Remove stale result JSON so openfe can write to -o.
75+
# Checkpoint data in -d is preserved for --resume.
7676
rm -f "${run_dir}/${filename}.json"
7777

7878
apptainer run --nv "${OPENFE_CONTAINER}" openfe quickrun \
79-
"${FILE}" -o "${run_dir}/${filename}.json" -d "${run_dir}"
79+
--resume "${FILE}" -o "${run_dir}/${filename}.json" -d "${run_dir}"

0 commit comments

Comments
 (0)