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)
| 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 | } |
no outgoing calls
no test coverage detected