Skip to content
Snippets Groups Projects

Update submit script to include facility in job name passed via -N

Merged Price, Zach requested to merge set_facility_in_job_name into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -53,4 +53,4 @@ RUN_DATE=$(date +%Y%m%d -d"14 days ago")
# To regenerate the secret with a new key:
# kubectl create secret generic stratus-armxfer-ssh-key --from-file=id_rsa=/path/to/id_rsa --namespace aerioe
/usr/bin/curl -sk "https://pcm.arm.gov/pcm/api/processes/aerioe" | jq -r '.process.run_locations[] | "/opt/torque/bin/qsub /software/user_tools/current/cades-arm/aerioe_prod/bin/aerioe_submit_mpi -W x=FLAGS:ADVRES:$(showres | grep arm-prod | cut -f1 -d'"' '"' | sort -r | head -n1) -l nodes=6:ppn=36 -N aerioe."+(.site | ascii_downcase)+"."+env.RUN_DATE+" -v date="+env.RUN_DATE+",site="+(.site | ascii_downcase)+",facility="+.fac' | while read -r cmd; do ssh-vi /etc/ssh-key/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no armxfer@stratus.ornl.gov $cmd; done
/usr/bin/curl -sk "https://pcm.arm.gov/pcm/api/processes/aerioe" | jq -r '.process.run_locations[] | "/opt/torque/bin/qsub /software/user_tools/current/cades-arm/aerioe_prod/bin/aerioe_submit_mpi -W x=FLAGS:ADVRES:$(showres | grep arm-prod | cut -f1 -d'"' '"' | sort -r | head -n1) -l nodes=6:ppn=36 -N aerioe."+(.site | ascii_downcase)+"."+.fac+"."+env.RUN_DATE+" -v date="+env.RUN_DATE+",site="+(.site | ascii_downcase)+",facility="+.fac' | while read -r cmd; do ssh-vi /etc/ssh-key/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no armxfer@stratus.ornl.gov $cmd; done
Loading