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

Method StackForOrg

controlplane/org_router.go:207–212  ·  view source on GitHub ↗

StackForOrg resolves an orgID directly to its org stack.

(orgID string)

Source from the content-addressed store, hash-verified

205 // Start candidate-owned background work only after successful publication.
206 orgID := tc.Name
207 go func() {
208 ticker := time.NewTicker(10 * time.Second)
209 defer ticker.Stop()
210 for {
211 select {
212 case <-ctx.Done():
213 return
214 case <-ticker.C:
215 sessionCount := sessions.SessionCount()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected