@@ -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
}