Planner not starts tasks
MidoMiddle opened this issue · 1 comments
MidoMiddle commented
Impress and Node.js versions
16.15.0
Platform
macos
Describe the bug
After starting of an app, a tasks is not added to:
constructor() {
this.tasks = new Map();
}
After manual add new tasks, start does not schedule, because no tasks in this.tasks
but .json files has been created
To Reproduce
In Example do:
// lib / task1 / start.js
await application.scheduler.add({
name: 'name',
every: '5s',
args: { i: 2 },
run: 'lib.task1.f1',
});
// lib / task1 / f1.js
async (args) => {
console.debug('lib.task1.f1', args);
await metarhia.metautil.delay(1000);
};
Expected behavior
No response
Screenshots
No response
Additional context
No response
tshemsedinov commented