@hotmeshio/hotmesh
Version:
Serverless Workflow
17 lines (16 loc) • 841 B
TypeScript
import { EngineService } from '../engine';
import { TelemetryService } from '../telemetry';
import { ActivityData, ActivityMetadata, ActivityType, InterruptActivity } from '../../types/activity';
import { JobInterruptOptions, JobState } from '../../types/job';
import { Activity } from './activity';
declare class Interrupt extends Activity {
config: InterruptActivity;
constructor(config: ActivityType, data: ActivityData, metadata: ActivityMetadata, hook: ActivityData | null, engine: EngineService, context?: JobState);
process(): Promise<string>;
interruptSelf(telemetry: TelemetryService): Promise<string>;
interruptAnother(telemetry: TelemetryService): Promise<string>;
isInterruptingSelf(): boolean;
resolveInterruptOptions(): JobInterruptOptions;
interrupt(): Promise<string>;
}
export { Interrupt };