limit concurrent slurm commands
authorJoshua C. Randall <jcrandall@alum.mit.edu>
Thu, 23 Aug 2018 19:49:44 +0000 (19:49 +0000)
committerJoshua C. Randall <jcrandall@alum.mit.edu>
Thu, 23 Aug 2018 19:49:44 +0000 (19:49 +0000)
commit499208bc547b8151fcf3a4230fab28720f94b13c
tree11e3ea8bbe8468aab7f7796b27819679d2696b5e
parentac2cc876733c6137d525d12780275f2c02d84383
limit concurrent slurm commands

use a semaphore channel to limit concurrent sbatch/scancel/scontrol commands to 3.
squeue is already limited to one at a time.

fixes 14110

Arvados-DCO-1.1-Signed-off-by: Joshua C. Randall <jcrandall@alum.mit.edu>
services/crunch-dispatch-slurm/crunch-dispatch-slurm.go
services/crunch-dispatch-slurm/slurm.go