Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc92903c

Browse files
committed
add prebuild reconciler
1 parent74cf7ae commitc92903c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎coderd/pproflabel/pproflabel.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const (
1515
ServiceMetricCollector="metric-collector"
1616
ServiceLifecycles="lifecycles"
1717
ServiceHTTPServer="http-server"
18+
ServicePrebuildReconciler="prebuild-reconciler"
1819
)
1920

2021
funcService(namestring) pprof.LabelSet {

‎enterprise/coderd/coderd.go‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ import (
1212
"sync"
1313
"time"
1414

15-
"github.com/coder/quartz"
16-
1715
"github.com/coder/coder/v2/buildinfo"
1816
"github.com/coder/coder/v2/coderd/appearance"
1917
"github.com/coder/coder/v2/coderd/database"
2018
"github.com/coder/coder/v2/coderd/entitlements"
2119
"github.com/coder/coder/v2/coderd/idpsync"
2220
agplportsharing"github.com/coder/coder/v2/coderd/portsharing"
21+
"github.com/coder/coder/v2/coderd/pproflabel"
2322
agplprebuilds"github.com/coder/coder/v2/coderd/prebuilds"
2423
"github.com/coder/coder/v2/coderd/rbac/policy"
2524
"github.com/coder/coder/v2/coderd/wsbuilder"
2625
"github.com/coder/coder/v2/enterprise/coderd/connectionlog"
2726
"github.com/coder/coder/v2/enterprise/coderd/enidpsync"
2827
"github.com/coder/coder/v2/enterprise/coderd/portsharing"
28+
"github.com/coder/quartz"
2929

3030
"golang.org/x/xerrors"
3131
"tailscale.com/tailcfg"
@@ -903,7 +903,8 @@ func (api *API) updateEntitlements(ctx context.Context) error {
903903
}
904904

905905
api.AGPL.PrebuildsReconciler.Store(&reconciler)
906-
goreconciler.Run(context.Background())
906+
// TODO: Should this context be the app context?
907+
pproflabel.Go(context.Background(),pproflabel.Service(pproflabel.ServicePrebuildReconciler),reconciler.Run)
907908

908909
api.AGPL.PrebuildsClaimer.Store(&claimer)
909910
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp