fix(core): update

This commit is contained in:
2022-11-14 14:54:26 +01:00
parent ff57dccee1
commit 84f186924e
4 changed files with 69 additions and 5 deletions

View File

@ -128,12 +128,19 @@ export class Task {
// INSTANCE
// mandatory properties
public name: string;
/**
* the version of the task
* should follow semver
* might be important for DistributedCoordinator
*/
public version: string;
public taskFunction: ITaskFunction;
public buffered: boolean;
public cronJob: plugins.smarttime.CronJob;
public bufferMax: number;
public execDelay: number;
public timeout: number;
// tasks to run before and after
public preTask: Task | TPreOrAfterTaskFunction;