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

Method ReservePID

controlplane/session_mgr.go:186–188  ·  view source on GitHub ↗

ReservePID generates a new unique PID for a session.

()

Source from the content-addressed store, hash-verified

184 if sm.lifecycle.isClosed() {
185 sm.mu.Unlock()
186 return nil, ErrSessionManagerDraining
187 }
188 limiter := sm.limiter
189 resourceLimits := sm.resourceLimits
190 requestedVCPUs := sm.requestedVCPUs
191 sm.mu.Unlock()

Calls 1

reservePIDFunction · 0.85