feat(taskrunner): now has working taskrunner

This commit is contained in:
2019-11-28 11:33:26 +00:00
parent af5fa857cc
commit 138aefc499
11 changed files with 137 additions and 81 deletions

View File

@@ -10,7 +10,7 @@ export interface ICronJob {
export class TaskManager {
public taskMap = new plugins.lik.Objectmap<Task>();
private cronJobMap = new plugins.lik.Objectmap<ICronJob>();
constructor() {
// nothing here
}
@@ -85,7 +85,7 @@ export class TaskManager {
/**
* deschedules a task by name
* @param taskNameArg
* @param taskNameArg
*/
public descheduleTaskByName(taskNameArg: string) {
const descheduledCron = this.cronJobMap.findOneAndRemove(itemArg => {