feat(core): Add debounced tasks and step-based progress tracking; upgrade deps and improve dashboard and scheduling
This commit is contained in:
@@ -25,7 +25,7 @@ tap.test('should run the task as expected', async () => {
|
||||
console.log('Task "myTask" executed!');
|
||||
referenceBoolean = true;
|
||||
taskRunCounter++;
|
||||
if (taskRunCounter === 10) {
|
||||
if (taskRunCounter === 3) {
|
||||
taskDone.resolve();
|
||||
}
|
||||
},
|
||||
@@ -38,7 +38,7 @@ tap.test('should run the task as expected', async () => {
|
||||
});
|
||||
|
||||
tap.test('should schedule task', async () => {
|
||||
myTaskManager.scheduleTaskByName('myTask', '*/10 * * * * *');
|
||||
myTaskManager.scheduleTaskByName('myTask', '*/5 * * * * *');
|
||||
await taskDone.promise;
|
||||
myTaskManager.descheduleTaskByName('myTask');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user