///
import { IScheduleConfig } from './schedule-config.interface';
import { Job } from 'node-schedule';
export interface IJob {
key: string;
config: IScheduleConfig;
type: 'cron' | 'interval' | 'timeout';
instance?: Job;
timer?: NodeJS.Timer;
method?: () => Promise | Stop;
tryLock?: TryLock | Promise;
status: string;
}