import { IError } from '../../exceptions/IError'; import { ITaskRunnerResult } from '../../tasks/ITaskRunnerResult'; import { AbstractEvent } from '../../messaging/AbstractEvent'; import { IQueueWorkload } from '../../../libs/queue/IQueueWorkload'; import { TASK_RUNNER_SPEC, TASK_STATES } from '../Constants'; /** * Id is the runner id */ export declare abstract class AbstractTaskEvent extends AbstractEvent implements IQueueWorkload { /** * Name or names of task(s) to execute */ taskSpec: TASK_RUNNER_SPEC | TASK_RUNNER_SPEC[]; /** * Arguments to pass to task runner */ parameters?: { [name: string]: any; }; /** * Errors */ errors: IError[]; /** * Current state of task */ state: TASK_STATES; /** * Topic of this event */ topic: 'data' | 'log'; /** * log data */ log: any[]; data: ITaskRunnerResult; constructor(); addParameter(key: string, value: any): void; }