interface InterruptActivity {
    PRODUCES?: string[];
    ancestors?: string[];
    code?: number;
    collationInt?: number;
    consumes?: Consumes;
    cycle?: boolean;
    descend?: boolean;
    emit?: boolean;
    expire?: number;
    hook?: Record<string, any>;
    input?: Record<string, any>;
    job?: Record<string, any>;
    output?: Record<string, any>;
    parent?: string;
    persist?: boolean;
    persistent?: boolean;
    produces?: string[];
    publishes?: string;
    reason?: string;
    retry?: StreamRetryPolicy;
    settings?: Record<string, any>;
    sleep?: number;
    stack?: string;
    statusThreshold?: number;
    statusThresholdType?: "stop" | "throw" | "stall";
    subscribes?: string;
    subtype?: string;
    target?: string;
    telemetry?: Record<string, any>;
    throw?: boolean;
    title?: string;
    topic?: string;
    trigger?: string;
    type: "interrupt";
}

Hierarchy (view full)

Properties

PRODUCES?: string[]
ancestors?: string[]
code?: number

Optional Error Code; will be used as the error code when thrown

410
collationInt?: number
consumes?: Consumes
cycle?: boolean
descend?: boolean

Interrupt child/descendant jobs

false
emit?: boolean
expire?: number
hook?: Record<string, any>
input?: Record<string, any>
job?: Record<string, any>
output?: Record<string, any>
parent?: string
persist?: boolean
persistent?: boolean
produces?: string[]
publishes?: string
reason?: string

Optional Reason; will be used as the error message when thrown

'Job Interrupted'
settings?: Record<string, any>
sleep?: number
stack?: string

Optional stack trace

statusThreshold?: number
statusThresholdType?: "stop" | "throw" | "stall"
subscribes?: string
subtype?: string
target?: string

Target job id (if not present the current job will be targeted)

telemetry?: Record<string, any>
throw?: boolean

throw JobInterrupted error upon interrupting

true
title?: string
topic?: string

Optional topic to publish the interrupt message (if not present the current job topic will be used

trigger?: string
type: "interrupt"