integreat
Version:
Node.js integration layer
11 lines (10 loc) • 508 B
TypeScript
import Schedule from './Schedule.js';
import type { Action, Response, HandlerDispatch, MapTransform, MapOptions, SetProgress } from '../types.js';
import type { JobDef } from './types.js';
export default class Job {
#private;
id: string;
schedule?: Schedule;
constructor(jobDef: JobDef, mapTransform: MapTransform, mapOptions: MapOptions, failOnErrorInPostconditions?: boolean);
run(action: Action, dispatch: HandlerDispatch, setProgress: SetProgress, gid?: string): Promise<Response>;
}