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

Function persistProbeHealthResult

packages/core/sdk/src/executor.ts:4575–4586  ·  view source on GitHub ↗
(
      ref: ConnectionRef,
      result: HealthCheckResult,
    )

Source from the content-addressed store, hash-verified

4573 * landing even between the read and the UPDATE wins and the probe
4574 * verdict is a silent no-op. Best-effort, like every verdict write. */
4575 const persistProbeHealthResult = (
4576 ref: ConnectionRef,
4577 result: HealthCheckResult,
4578 ): Effect.Effect<void> =>
4579 findConnectionRow(ref).pipe(
4580 Effect.flatMap((fresh) =>
4581 fresh === null || oauthReauthRequiredFromProviderState(fresh.provider_state) !== null
4582 ? Effect.void
4583 : persistHealthResult(ref, fresh, result),
4584 ),
4585 Effect.ignore,
4586 );
4587
4588 const connectionCheckHealth = (
4589 ref: ConnectionRef,

Callers 1

connectionCheckHealthFunction · 0.85

Calls 3

findConnectionRowFunction · 0.85
persistHealthResultFunction · 0.85

Tested by

no test coverage detected