Skip to content

IDEMPOTENCY_OWNERSHIP_LOST_ITEM

const IDEMPOTENCY_OWNERSHIP_LOST_ITEM: typeof IDEMPOTENCY_OWNERSHIP_LOST_ITEM

Defined in: packages/pipeline-idempotency/src/idempotency.behavior.ts:81

Unique symbol key set on context.items to true when a handler completed after its claim had expired or been replaced. The successful handler result is returned, but this execution is not allowed to overwrite the newer owner’s replay state.

const ownershipLost = context.items.get(IDEMPOTENCY_OWNERSHIP_LOST_ITEM) === true;