Skip to content

Commit 67f9bad

Browse files
fix: update sbatch command in check_status.sh to set working directory
Modified the sbatch command in check_status.sh to include the --chdir option, ensuring that jobs are submitted with the correct working directory. This change enhances the script's reliability when handling job submissions with relative paths.
1 parent bd9f280 commit 67f9bad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/openfe/runtime/check_status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,6 @@ if [[ "$RESTART" == true && -s "$RESTART_FILE" ]]; then
283283
while IFS=$'\t' read -r tname replica_ids; do
284284
tf_json="${TRANSFORMS_DIR}/${tname}.json"
285285
echo "Resubmitting ${tname} replicas [${replica_ids}]"
286-
sbatch --array="${replica_ids}" "$SBATCH_SCRIPT" "$tf_json" -o "$RESULTS_DIR"
286+
sbatch --chdir "$ROOT_ABS" --array="${replica_ids}" "$SBATCH_SCRIPT" "$tf_json" -o "$RESULTS_DIR"
287287
done
288288
fi

0 commit comments

Comments
 (0)