KillSwitchExecution
@mandaitor/sdk / KillSwitchExecution
Interface: KillSwitchExecution
Defined in: @mandaitor/sdk/dist/types.d.ts:625
Progress record of one kill-switch execution. Counts add up page by page while RUNNING and are final once COMPLETED or FAILED. The worker disables the tenant's tools, stops its executions not yet dispatched, then revokes its mandates; the fields on tools and executions are absent on an execution recorded before it did.
Properties
attempts
attempts:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:659
Delivery attempts of the current queue message.
audit_event_failures
audit_event_failures:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:654
Revoked mandates whose MANDATE_REVOKED audit event could not be written.
continuations
continuations:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:657
Worker invocations after the first, for a run that outgrew one invocation.
execution_id
execution_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:626
executions_busy?
optionalexecutions_busy?:number
Defined in: @mandaitor/sdk/dist/types.d.ts:644
Executions another writer held when it reached them; each ends refused, its tool no longer enabled.
executions_cancelled?
optionalexecutions_cancelled?:number
Defined in: @mandaitor/sdk/dist/types.d.ts:640
Executions it stopped before they were dispatched, each DENIED with KILL_SWITCH.
executions_failed?
optionalexecutions_failed?:number
Defined in: @mandaitor/sdk/dist/types.d.ts:646
Executions whose denial could not be recorded; each is refused by the same check.
executions_in_flight?
optionalexecutions_in_flight?:number
Defined in: @mandaitor/sdk/dist/types.d.ts:642
Executions already dispatched (EXECUTING, UNKNOWN): they finish, and nothing recalls them.
failed_count
failed_count:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:652
Mandates whose status write failed; still ACTIVE, SUSPENDED or PENDING_APPROVAL.
finished_at?
optionalfinished_at?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:633
last_error?
optionallast_error?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:660
pages_processed
pages_processed:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:655
phase?
optionalphase?:"TOOLS"|"EXECUTIONS"|"MANDATES"
Defined in: @mandaitor/sdk/dist/types.d.ts:636
What the worker is doing, in this order.
reason
reason:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:629
requested_at
requested_at:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:631
requested_by
requested_by:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:630
revoked_count
revoked_count:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:648
Mandates this execution moved to REVOKED.
skipped_count
skipped_count:
number
Defined in: @mandaitor/sdk/dist/types.d.ts:650
Mandates that needed nothing: already REVOKED or EXPIRED, never submitted, or changed meanwhile.
started_at?
optionalstarted_at?:string
Defined in: @mandaitor/sdk/dist/types.d.ts:632
status
status:
KillSwitchExecutionStatus
Defined in: @mandaitor/sdk/dist/types.d.ts:628
tenant_id
tenant_id:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:627
tools_disabled?
optionaltools_disabled?:KillSwitchDisabledTool[]
Defined in: @mandaitor/sdk/dist/types.d.ts:638
The tools it disabled.
updated_at
updated_at:
string
Defined in: @mandaitor/sdk/dist/types.d.ts:634