Skip to main content

Interface: EventSinkHealth

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:675

The event sink's state as a host reports it.

"degraded" is the named state for "the sink is refusing events". It is deliberately not an error: an event sink is a notification channel, and the committed poller is the truth that advances a run, so a degraded sink costs delivery latency and nothing else. What it must not do is stay invisible until the dead-letter queue fills, which is what this report is for — surface it from wherever the host reports its status, alert on status === "degraded" and on deadLettered growing.

Properties​

consecutiveFailures​

consecutiveFailures: number

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:683

Consecutive observed flushes that failed to publish at least one event.


deadLettered​

deadLettered: number

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:689

Events this process has watched exhaust their retry budget and move to the dead-letter queue. These stop retrying on their own — replay them with the plugin.replayDLQ command.


lastError​

lastError: string | null

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:691

Message of the most recent publish failure, or null while healthy.


since​

since: number | null

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:681

When the current status began (epoch ms), or null before the first flush this process observed.


status​

status: EventSinkStatus

Defined in: packages/workflow-engine/src/kernel/helpers/host-support.ts:676