13959: Merge branch 'master' into 13959-timeouts-and-logging
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.go
index b12be91c91e847fda0da2e76b8947abfac325100..ce0360261dab4aa3ab424d27c29c782e268b567f 100644 (file)
@@ -64,6 +64,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() {
@@ -183,6 +186,7 @@ func (disp *Dispatcher) setup() {
        disp.Dispatcher = &dispatch.Dispatcher{
                Arv:            arv,
                Logger:         disp.logger,
+               BatchSize:      disp.BatchSize,
                RunContainer:   disp.runContainer,
                PollPeriod:     time.Duration(disp.PollPeriod),
                MinRetryPeriod: time.Duration(disp.MinRetryPeriod),