Skip to content

CommandProcessorEvents

CommandProcessorEvents = object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:39

Event map for CommandProcessor lifecycle events.

action_error: object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:82

Fired when one or more actions in a batch fail or are skipped.

action: ActionName

The action that failed.

error: Error | undefined

The error the action failed with, or undefined if it was skipped.

instanceId: InstanceId

The Instance the failing action targeted.

timestamp: number

performance.now() reading taken when the error was reported.


batch_abandoned: object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:71

Fired when a command in a multi-command batch throws and the rest of that batch is abandoned. failed is the command that threw (already reported through processing_error); abandoned are the commands after it that never ran.

abandoned: readonly Command[]

The commands after failed that were never processed.

error: Error

The error failed threw.

failed: Command

The command that threw and stopped the batch.

timestamp: number

performance.now() reading taken when the batch was abandoned.


command_complete: object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:48

Fired when a command finishes processing, whether it succeeded or threw.

command: Command

The command that finished processing.

duration: number

Milliseconds elapsed between command_start and this event.

timestamp: number

performance.now() reading taken when the command completed.


command_start: object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:41

Fired when a command begins processing.

command: Command

The command that began processing.

timestamp: number

performance.now() reading taken when the command started.


processing_error: object

Defined in: packages/client/src/lib/command-processor/command-processor.ts:57

Fired when a command throws while processing.

command: Command

The command that threw.

error: Error

The error the command threw.

timestamp: number

performance.now() reading taken when the error was reported.