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

Method RegisterQuery

server/server.go:704–708  ·  view source on GitHub ↗

RegisterQuery registers a cancel function for a backend key. This allows the query to be cancelled via a cancel request from another connection.

(key BackendKey, cancel context.CancelFunc)

Source from the content-addressed store, hash-verified

702
703 select {
704 case <-done:
705 slog.Info("All connections closed gracefully.")
706 case <-ctx.Done():
707 slog.Warn("Shutdown context cancelled, force closing remaining connections.")
708 // Force kill remaining children
709 if s.cfg.ProcessIsolation && s.childTracker != nil {
710 s.childTracker.SignalAll(syscall.SIGKILL)
711 }

Callers 2

queryContextInnerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected