Skip to main content

Interface: EventsForCommandsContext

Properties​

enabled?​

optional enabled?: CommandGate

Which commands are enabled (see validateCommands). Default core.


nowMs​

nowMs: number

Task start time (the request's nowMs); timers fire at nowMs + durationMs.


relief?​

optional relief?: CommandRelief

What the lease already granted; relief commands pass the gate (see isReliefCommand).


taskId​

taskId: string

The task that produced the commands; written as each event's taskId.


updates?​

optional updates?: Readonly<Record<string, { args?: Json; headers?: Record<string, string>; name: string; }>>

The pending updates the lease delivered, by id (C-ABI-H): UPDATE_ACCEPTED carries the request from here. An update history already admitted (UPDATE_ADMITTED) is found in the run state instead. An update reply for an id in neither is INVALID_REQUEST.