From 5fb6e9b46f55328b001b6d07ea974226b258a9eb Mon Sep 17 00:00:00 2001 From: jasperalbers Date: Fri, 4 Mar 2022 12:25:21 +0100 Subject: [PATCH] record git commit hash of model repository --- helpers/helpers.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpers/helpers.yaml b/helpers/helpers.yaml index 288f424..232b2b3 100644 --- a/helpers/helpers.yaml +++ b/helpers/helpers.yaml @@ -86,6 +86,9 @@ parameterset: srun ${affinity} python ${run_file} ${run_args} srun -n 1 --nodes 1 python ${base_path}/helpers/collect_timer_data.py ${log_path} srun -n 1 --nodes 1 python ${base_path}/helpers/cpu_logging.py ${jube_wp_abspath} + cd ${model_path} + model_git_commit_hash=$(git rev-parse HEAD) + cd - cat >job.json <