Scheduler rewrites task files
tshemsedinov opened this issue · 0 comments
tshemsedinov commented
Impress and Node.js versions
v18.1.0
Platform
Linux marcus 5.17.13-200.fc35.x86_64 #1 SMP PREEMPT Mon Jun 6 14:38:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
For example we have application/tasks/2022-07-28-id-0.json
:
{"name":"name","every":"10s","args":{"i":2},"run":"lib.task1.f1","app":"/home/marcus/Dropbox/Metarhia/Example","id":"2022-07-28-id-0"}
and call:
const res = await application.scheduler.add({
name: 'name',
every: 'Sep 10th 10s',
args: { i: 2 },
run: 'lib.task1.f1',
});
To fix: restore last event id from application/tasks/
and increment it each time we call application.scheduler.add(task)
To Reproduce
No response
Expected behavior
No response
Screenshots
No response
Additional context
No response