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

Method HealthCheckLoop

controlplane/org_reserved_pool.go:366–367  ·  view source on GitHub ↗
(ctx context.Context, interval time.Duration, onCrash WorkerCrashHandler, onProgress ProgressHandler)

Source from the content-addressed store, hash-verified

364 p.shared.mu.RLock()
365 defer p.shared.mu.RUnlock()
366 w, ok := p.shared.workers[id]
367 if !ok || !p.workerBelongsToOrgLocked(w) {
368 return nil, false
369 }
370 return w, true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected