Skip to content

RuntimeInternalEvent

RuntimeInternalEvent = { [K in keyof Omit<AlpyneEvent, "claimedAt">]: Readonly<AlpyneEvent[K]> }

Describes the stored Event that triggered a write execution, so that everything the execution publishes is linked back to it.

Pass a RuntimeInternalEvent as the event argument of execute('readwrite', ...) when the work reacts to an existing Event; the reactor does this for every asynchronous Listener run. Events published inside the execution inherit its traceId, extend its eventPrnLineage, and take its id as their parentId and its root as their rootParentId. Combined with ReadWriteExecuteOptions.idempotencyScope, its id deduplicates repeated runs.