From 22e642ebf5d9654136115a225370bf2f8e517123 Mon Sep 17 00:00:00 2001 From: gadorlhiac Date: Thu, 11 Apr 2024 11:54:28 -0700 Subject: [PATCH] MNT Redirect stderr and stdout to same SLURM output file. Easier to receive logs on Airflow side. --- launch_scripts/submit_slurm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launch_scripts/submit_slurm.sh b/launch_scripts/submit_slurm.sh index ed7508fa..473ee1dc 100755 --- a/launch_scripts/submit_slurm.sh +++ b/launch_scripts/submit_slurm.sh @@ -20,6 +20,7 @@ EOF } POSITIONAL=() + while [[ $# -gt 0 ]] do flag="$1" @@ -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"