6518: strigger works
[arvados.git] / services / crunch-dispatch-slurm / crunch-finish-slurm.sh
1 #!/bin/sh
2
3 # I wonder if it is possible to attach metadata to job records to look these
4 # things up instead of having to provide it on the command line.
5
6 ARVADOS_API_HOST=$1
7 ARVADOS_API_TOKEN=$2
8 ARVADOS_API_HOST_INSECURE=$3
9 uuid=$4
10 jobid=$5
11
12 #uuid=$(squeue --jobs=$jobid --states=all --format=%j --noheader)
13
14 export ARVADOS_API_HOST ARVADOS_API_TOKEN ARVADOS_API_HOST_INSECURE
15
16 exec arv container update --uuid $uuid --container '{"state": "Complete"}'