X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/94f2b439783a8e63d6d7b9ba2760f54fc642a8fb..fd4d26e448b1f9f45f84c0ff9ec10db54471d880:/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go?ds=sidebyside diff --git a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go index d1f19dd7b5..c1009a5d8e 100644 --- a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go +++ b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.go @@ -57,6 +57,9 @@ type Dispatcher struct { // Minimum time between two attempts to run the same container MinRetryPeriod arvados.Duration + + // Batch size for container queries + BatchSize int64 } func main() { @@ -164,6 +167,7 @@ func (disp *Dispatcher) setup() { } disp.Dispatcher = &dispatch.Dispatcher{ Arv: arv, + BatchSize: disp.BatchSize, RunContainer: disp.runContainer, PollPeriod: time.Duration(disp.PollPeriod), MinRetryPeriod: time.Duration(disp.MinRetryPeriod),