Skip to content
1 min read · 152 words

Interface: DispatchEndEvent

Defined in: src/lib/types/dispatch_runner.ts:398

Payload fired when a dispatch ends — successfully, by error, or by abort.

Properties

PropertyTypeDescriptionDefined in
dispatchIdstringStable identifier for this dispatch.src/lib/types/dispatch_runner.ts:400
durationMsnumberDuration in milliseconds.src/lib/types/dispatch_runner.ts:412
endedAtDateTimeWhen the dispatch ended.src/lib/types/dispatch_runner.ts:410
error?ErrorThe error stored by ctx.nack(error), or undefined for ack / aborted.src/lib/types/dispatch_runner.ts:404
iterationsnumberTotal iterations that ran during this dispatch.src/lib/types/dispatch_runner.ts:406
startedAtDateTimeWhen the dispatch began.src/lib/types/dispatch_runner.ts:408
status"ack" | "nack" | "aborted"How the dispatch settled.src/lib/types/dispatch_runner.ts:402