X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/28e50cc9480fdad416404542511a172cdc7253c7..aabff656faab97bcc70bb3d4a5001068f7d395c8:/lib/dispatchcloud/dispatcher.go diff --git a/lib/dispatchcloud/dispatcher.go b/lib/dispatchcloud/dispatcher.go index 4023896f79..278bcb6657 100644 --- a/lib/dispatchcloud/dispatcher.go +++ b/lib/dispatchcloud/dispatcher.go @@ -82,6 +82,11 @@ func (disp *dispatcher) CheckHealth() error { return disp.pool.CheckHealth() } +// Done implements service.Handler. +func (disp *dispatcher) Done() <-chan struct{} { + return disp.stopped +} + // Stop dispatching containers and release resources. Typically used // in tests. func (disp *dispatcher) Close() { @@ -176,7 +181,7 @@ func (disp *dispatcher) run() { if pollInterval <= 0 { pollInterval = defaultPollInterval } - sched := scheduler.New(disp.Context, disp.queue, disp.pool, staleLockTimeout, pollInterval) + sched := scheduler.New(disp.Context, disp.queue, disp.pool, disp.Registry, staleLockTimeout, pollInterval) sched.Start() defer sched.Stop()