Skip to content
Snippets Groups Projects
Commit 9ff2d872 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Don't fail without Slurm environment variable

parent 5b9b509e
No related branches found
No related tags found
1 merge request!571Fix launching work directly (not via Slurm)
...@@ -21,7 +21,7 @@ echo "notebook: $notebook" ...@@ -21,7 +21,7 @@ echo "notebook: $notebook"
echo "detector: $detector" echo "detector: $detector"
echo "caltype: $caltype" echo "caltype: $caltype"
echo "cluster_cores: $cluster_cores" echo "cluster_cores: $cluster_cores"
echo "job ID: $SLURM_JOB_ID" echo "job ID: ${SLURM_JOB_ID:-none}"
export CAL_NOTEBOOK_NAME="$notebook" export CAL_NOTEBOOK_NAME="$notebook"
......
...@@ -11,7 +11,7 @@ echo "Running with the following parameters:" ...@@ -11,7 +11,7 @@ echo "Running with the following parameters:"
echo "Python path: $python_path" echo "Python path: $python_path"
echo "Correction temp dir: $temp_dir" echo "Correction temp dir: $temp_dir"
echo "finalize script: $finalize_script" echo "finalize script: $finalize_script"
echo "job ID: $SLURM_JOB_ID" echo "job ID: ${SLURM_JOB_ID:-none}"
# set-up enviroment # set-up enviroment
source /etc/profile.d/modules.sh source /etc/profile.d/modules.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment