Abstract task data after runTask
Private Optional descriptionCurrent run error count
Protected Optional loggerTotal run count
Total run error count
Readonly singleIf task need to be a single instance, default is false
public override readonly singleInstance = true;
this is actual error task did throw
Abstract triggertask trigger type
Readonly Abstract typetask type string
Readonly uuidProtected Abstract buildRest ...args: Parameters<TaskEvents[E]>Called before the task is running. how to use:
true if the task should be started
public override onPreStart(): Promise<boolean> | boolean {
// leave only the last 10 errors
if (this.errors.size > 10) {
const errors = Array.from(this.errors);
errors.splice(0, errors.length - 10);
this.errors = new Set(errors);
}
return true;
}
Abstract runrun task action
Generated using TypeDoc
Task constructor params