Skip to content

Commit

Permalink
MNT Redirect stderr and stdout to same SLURM output file. Easier to r…
Browse files Browse the repository at this point in the history
…eceive logs on Airflow side.
  • Loading branch information
gadorlhiac committed Apr 11, 2024
1 parent e94c1be commit 22e642e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launch_scripts/submit_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ EOF
}

POSITIONAL=()

while [[ $# -gt 0 ]]
do
flag="$1"
Expand Down Expand Up @@ -67,7 +68,7 @@ RUN="${RUN_TIME_ARR[0]}"
FORMAT_RUN=$(printf "%04d" ${RUN:-0})
LOG_FILE="${TASK}_${EXPERIMENT:-$EXP}_r${FORMAT_RUN}_$(date +'%Y-%m-%d_%H-%M-%S')"
SLURM_ARGS+=" --output=${LOG_FILE}.out"
SLURM_ARGS+=" --error=${LOG_FILE}.err"
SLURM_ARGS+=" --error=${LOG_FILE}.out"

export LUTE_SOCKET="/tmp/lute_${RANDOM}.sock"

Expand Down

0 comments on commit 22e642e

Please sign in to comment.