MCPcopy Create free account
hub / github.com/PostHog/duckgres / stackForWorker

Method stackForWorker

controlplane/org_router.go:409–419  ·  view source on GitHub ↗
(workerID int)

Source from the content-addressed store, hash-verified

407 }
408}
409
410type orgStackReconcileState uint8
411
412const (
413 // Preserve the current presence for transitional warehouse states. A
414 // running stack remains available while resharding, but a CP that starts in
415 // the middle of provisioning or resharding must not create a new one.
416 orgStackPreserve orgStackReconcileState = iota
417 orgStackEnsurePresent
418 orgStackEnsureAbsent
419)
420
421// latestOrgStackState reads the ConfigStore snapshot after the caller has
422// acquired the per-org mutation slot. ConfigStore publishes immutable snapshot

Callers 2

onSharedWorkerCrashMethod · 0.95

Calls 1

SessionCountForWorkerMethod · 0.80

Tested by

no test coverage detected