Skip to main content

KillSwitchExecution

@mandaitor/sdk


@mandaitor/sdk / KillSwitchExecution

Interface: KillSwitchExecution

Defined in: @mandaitor/sdk/dist/types.d.ts:649

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

Delivery attempts of the current queue message.


audit_event_failures​

audit_event_failures: number

Defined in: @mandaitor/sdk/dist/types.d.ts:678

Revoked mandates whose MANDATE_REVOKED audit event could not be written.


continuations​

continuations: number

Defined in: @mandaitor/sdk/dist/types.d.ts:681

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


executions_busy?​

optional executions_busy?: number

Defined in: @mandaitor/sdk/dist/types.d.ts:668

Executions another writer held when it reached them; each ends refused, its tool no longer enabled.


executions_cancelled?​

optional executions_cancelled?: number

Defined in: @mandaitor/sdk/dist/types.d.ts:664

Executions it stopped before they were dispatched, each DENIED with KILL_SWITCH.


executions_failed?​

optional executions_failed?: number

Defined in: @mandaitor/sdk/dist/types.d.ts:670

Executions whose denial could not be recorded; each is refused by the same check.


executions_in_flight?​

optional executions_in_flight?: number

Defined in: @mandaitor/sdk/dist/types.d.ts:666

Executions already dispatched (EXECUTING, UNKNOWN): they finish, and nothing recalls them.


failed_count​

failed_count: number

Defined in: @mandaitor/sdk/dist/types.d.ts:676

Mandates whose status write failed; still ACTIVE, SUSPENDED or PENDING_APPROVAL.


finished_at?​

optional finished_at?: string

Defined in: @mandaitor/sdk/dist/types.d.ts:657


last_error?​

optional last_error?: string

Defined in: @mandaitor/sdk/dist/types.d.ts:684


pages_processed​

pages_processed: number

Defined in: @mandaitor/sdk/dist/types.d.ts:679


phase?​

optional phase?: "TOOLS" | "EXECUTIONS" | "MANDATES"

Defined in: @mandaitor/sdk/dist/types.d.ts:660

What the worker is doing, in this order.


reason​

reason: string

Defined in: @mandaitor/sdk/dist/types.d.ts:653


requested_at​

requested_at: string

Defined in: @mandaitor/sdk/dist/types.d.ts:655


requested_by​

requested_by: string

Defined in: @mandaitor/sdk/dist/types.d.ts:654


revoked_count​

revoked_count: number

Defined in: @mandaitor/sdk/dist/types.d.ts:672

Mandates this execution moved to REVOKED.


skipped_count​

skipped_count: number

Defined in: @mandaitor/sdk/dist/types.d.ts:674

Mandates that needed nothing: already REVOKED or EXPIRED, never submitted, or changed meanwhile.


started_at?​

optional started_at?: string

Defined in: @mandaitor/sdk/dist/types.d.ts:656


status​

status: KillSwitchExecutionStatus

Defined in: @mandaitor/sdk/dist/types.d.ts:652


tenant_id​

tenant_id: string

Defined in: @mandaitor/sdk/dist/types.d.ts:651


tools_disabled?​

optional tools_disabled?: KillSwitchDisabledTool[]

Defined in: @mandaitor/sdk/dist/types.d.ts:662

The tools it disabled.


updated_at​

updated_at: string

Defined in: @mandaitor/sdk/dist/types.d.ts:658