File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ const (
15
15
ServiceMetricCollector = "metric-collector"
16
16
ServiceLifecycles = "lifecycles"
17
17
ServiceHTTPServer = "http-server"
18
+ ServicePrebuildReconciler = "prebuild-reconciler"
18
19
)
19
20
20
21
func Service (name string ) pprof.LabelSet {
Original file line number Diff line number Diff line change @@ -12,20 +12,20 @@ import (
12
12
"sync"
13
13
"time"
14
14
15
- "github.com/coder/quartz"
16
-
17
15
"github.com/coder/coder/v2/buildinfo"
18
16
"github.com/coder/coder/v2/coderd/appearance"
19
17
"github.com/coder/coder/v2/coderd/database"
20
18
"github.com/coder/coder/v2/coderd/entitlements"
21
19
"github.com/coder/coder/v2/coderd/idpsync"
22
20
agplportsharing "github.com/coder/coder/v2/coderd/portsharing"
21
+ "github.com/coder/coder/v2/coderd/pproflabel"
23
22
agplprebuilds "github.com/coder/coder/v2/coderd/prebuilds"
24
23
"github.com/coder/coder/v2/coderd/rbac/policy"
25
24
"github.com/coder/coder/v2/coderd/wsbuilder"
26
25
"github.com/coder/coder/v2/enterprise/coderd/connectionlog"
27
26
"github.com/coder/coder/v2/enterprise/coderd/enidpsync"
28
27
"github.com/coder/coder/v2/enterprise/coderd/portsharing"
28
+ "github.com/coder/quartz"
29
29
30
30
"golang.org/x/xerrors"
31
31
"tailscale.com/tailcfg"
@@ -903,7 +903,8 @@ func (api *API) updateEntitlements(ctx context.Context) error {
903
903
}
904
904
905
905
api .AGPL .PrebuildsReconciler .Store (& reconciler )
906
- go reconciler .Run (context .Background ())
906
+ // TODO: Should this context be the app context?
907
+ pproflabel .Go (context .Background (), pproflabel .Service (pproflabel .ServicePrebuildReconciler ), reconciler .Run )
907
908
908
909
api .AGPL .PrebuildsClaimer .Store (& claimer )
909
910
}
You can’t perform that action at this time.
0 commit comments