X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6d7efab2c4bffa3fabd55b166e44cca8ac1391f..0b69c198f55f0294a3be1599256e8e73dfe2d000:/lib/controller/cmd.go diff --git a/lib/controller/cmd.go b/lib/controller/cmd.go index 0c46e857b3..96972251a3 100644 --- a/lib/controller/cmd.go +++ b/lib/controller/cmd.go @@ -13,8 +13,9 @@ import ( "github.com/prometheus/client_golang/prometheus" ) +// Command starts a controller service. See cmd/arvados-server/cmd.go var Command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler) -func newHandler(_ context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler { - return &Handler{Cluster: cluster} +func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler { + return &Handler{Cluster: cluster, BackgroundContext: ctx} }