MCPcopy Index your code
hub / github.com/coder/coder / StoreReconciler

Struct StoreReconciler

enterprise/coderd/prebuilds/reconcile.go:43–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41)
42
43type StoreReconciler struct {
44 store database.Store
45 cfg codersdk.PrebuildsConfig
46 pubsub pubsub.Pubsub
47 fileCache *files.Cache
48 logger slog.Logger
49 clock quartz.Clock
50 registerer prometheus.Registerer
51 notifEnq notifications.Enqueuer
52 buildUsageChecker *atomic.Pointer[wsbuilder.UsageChecker]
53 tracer trace.Tracer
54
55 // mu protects the reconciler's lifecycle state.
56 mu sync.Mutex
57 running bool
58 stopped bool
59 cancelFn context.CancelCauseFunc
60
61 done chan struct{}
62 provisionNotifyCh chan database.ProvisionerJob
63
64 reconciliationConcurrency int
65
66 // Prebuild state metrics
67 metrics *MetricsCollector
68 // Operational metrics
69 reconciliationDuration prometheus.Histogram
70 workspaceBuilderMetrics *wsbuilder.Metrics
71}
72
73var _ prebuilds.ReconciliationOrchestrator = &StoreReconciler{}
74

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected