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

Function isTerminalSessionIdleWaitError

server/flightclient/flight_executor.go:337–347  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

335
336 if len(args) > 0 {
337 query = interpolateArgs(query, args)
338 }
339
340 reqCtx, cancel := e.mergedContext(ctx)
341 defer cancel()
342
343 reqCtx = e.withSession(reqCtx)
344
345 // Note: we hand-roll the DoPut here instead of calling
346 // flightsql.Client.ExecuteUpdate so we can capture the gRPC trailer.
347 // ExecuteUpdate is a bidi-streaming RPC and grpc.Trailer(&md) as a
348 // CallOption only works for unary RPCs — for streams the trailer is
349 // only reachable via stream.Trailer() after Recv returns io.EOF.
350 // Without that capture the worker's per-query profiling JSON is

Callers 2

waitForSessionIdleMethod · 0.85
releaseQueryHandleMethod · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected