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

Method QueryDetailForWorkerID

controlplane/admin/live.go:127–127  ·  view source on GitHub ↗

QueryDetailForWorkerID returns the expanded detail (redacted SQL + connection metadata + progress) for the in-flight query on the given cluster-unique worker id, or ok=false if no live session/conn for that worker is owned by this control-plane replica. Addressed by worker id, not pid: pids are per-

(workerID int)

Source from the content-addressed store, hash-verified

125 MemoryBytes int64 `json:"memory_bytes"`
126 OldestHotIdleSince *time.Time `json:"oldest_hot_idle_since"`
127 CapWorkers int `json:"cap_workers"`
128 CapCPU string `json:"cap_cpu"`
129 CapMemory string `json:"cap_memory"`
130}

Callers 1

registerLiveAPIFunction · 0.65

Implementers 2

clusterInfoProvidercontrolplane/admin_providers.go
fakeLiveInfocontrolplane/admin/live_aggregate_test

Calls

no outgoing calls

Tested by

no test coverage detected