fix(coderd/provisionerdserver): pass through api ctx to provisionerdserver (#10259)

Passes through coderd API ctx to provisionerd server so we can cancel workspace updates when API is shutting down.
This commit is contained in:
Cian Johnston
2023-10-16 13:50:07 +01:00
committed by GitHub
parent 01792f064e
commit 6875faf238
4 changed files with 26 additions and 9 deletions

View File

@ -1108,6 +1108,7 @@ func (api *API) CreateInMemoryProvisionerDaemon(ctx context.Context) (client pro
logger := api.Logger.Named(fmt.Sprintf("inmem-provisionerd-%s", name))
logger.Info(ctx, "starting in-memory provisioner daemon")
srv, err := provisionerdserver.NewServer(
api.ctx,
api.AccessURL,
uuid.New(),
logger,