3 ms·
I have a node app that has one-off scheduled tasks. Between node-cron and real Linux cron, I went with real cron because node-cron just polls every second, whic
by jackb4040 1y ago
I have a node app that has one-off scheduled tasks. Between node-cron and real Linux cron, I went with real cron because node-cron just polls every second, which is extremely inefficient and I'm on a free tier.
How does your library work in this regard? If my node server is down, will my scheduled tasks still execute? I notice you have a .start() method, what does that do? Is it polling periodically?
- xqzv 1y agoIt's polling using javascript timers: https://github.com/timgit/pg-boss/blob/master/src/attorney.js#L6 https://github.com/timgit/pg-boss/blob/master/src/attorney.j...