MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isTransientUserStoreReason

Function isTransientUserStoreReason

apps/cloud/src/auth/errors.ts:64–65  ·  view source on GitHub ↗
(reason: UserStoreFailureReason)

Source from the content-addressed store, hash-verified

62/** Reasons a retry can plausibly clear: the query never reached a healthy
63 * server. A `query` failure is deterministic and must not be retried. */
64export const isTransientUserStoreReason = (reason: UserStoreFailureReason): boolean =>
65 reason === "connect_timeout" || reason === "connection_closed";
66
67// postgres.js tags its connection failures with a string `code`
68// (`CONNECT_TIMEOUT`, `CONNECTION_CLOSED`, …) and its query failures with the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected