I have express js server and 2 node cron tasks in the same script (node-cron npm package
‘’’
cron.schedule(“*/15 * * * *, …
‘’’
Every 15 minutes i scan 60k mongo documents. And i want to split this proccess to two: read 30k every 7.5 minutes at the same time
If i run these two tasks, sometimes only one executes, second is ignored.
How can I make this proccess better, Faster?