Skip to content

CommandProcessorEvents

CommandProcessorEvents = object

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

Event map for CommandProcessor lifecycle events.

action_error: object

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

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.


action_progress: object

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

Readiness and handler start progress, correlated to the owning command.

command: Command

Command that owns this readiness or execution stage.

progress: ActionProgress

Local Action progress.


actions_completed: object

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

Results include successful and skipped Actions, rather than failures alone.

command: Command

Command whose Action plan settled.

result: BatchExecutionResult

Includes success, failure, and readiness skips.

timestamp: number

Local monotonic completion time.


batch_abandoned: object

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

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:66

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_queued: object

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

Queue insertion, including work queued while another command is active.

command: Command

Command added to the sequential queue.

timestamp: number

Local monotonic enqueue time.


command_start: object

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

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:75

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.