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

Method CancelQuery

server/server.go:720–732  ·  view source on GitHub ↗

CancelQuery cancels a running query by its backend key. Returns true if a query was found and cancelled, false otherwise.

(key BackendKey)

Source from the content-addressed store, hash-verified

718 }
719 }
720 if s.acmeDNSManager != nil {
721 if err := s.acmeDNSManager.Close(); err != nil {
722 slog.Warn("ACME DNS manager shutdown error.", "error", err)
723 }
724 }
725
726 // Stop query logger (drains remaining entries)
727 if err := s.StopQueryLogging(ctx); err != nil {
728 slog.Warn("Query log shutdown deadline exceeded.", "error", err)
729 }
730
731 // Database connections are now closed by each clientConn when it terminates
732 slog.Info("Shutdown complete.")
733 return nil
734}
735

Calls

no outgoing calls