Skip to content

Commit

Permalink
fix: run_interactive from same directory as run
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaEmbedding committed Apr 18, 2024
1 parent f52477b commit 7229139
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions easy_slurm/templates/job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ run() {
wait
}

run_interactive() {
status_write "interacting"
begin_func "run_interactive" "$SLURM_TMPDIR"
trap finalize EXIT
}

resubmit_job() {
local RESULT="$(sbatch "$JOB_DIR/job.sh")"
local JOB_ID="$(sed 's/^Submitted batch job \([0-9]\+\)$/\1/' <<< "$RESULT")"
Expand Down Expand Up @@ -149,8 +155,7 @@ main() {
parse_args "$@"
initialize
if [ "$IS_INTERACTIVE" = true ]; then
status_write "interacting"
trap finalize EXIT
run_interactive
else
run
finalize
Expand Down

0 comments on commit 7229139

Please sign in to comment.