I was trying to launch the exact same node.js script in my code via node-cron.
const cron = require("node-cron");
const Bot = require("./bot");
// Scheduled to run at 10:00 AM
cron.schedule("0 10 * * *", () => {
for(int I=0; I<5; I++){
Bot();
}
}, {
scheduled: true,
timezone: "America/New_York"
});
My script takes about 20 minutes to do its job and close. And the question is, will the cron written above launch my script 5 times simultaneously, or wait till previously launched one completes, then launch the next one? If it does wait, how can I make it launch simultaneously? Thank you beforehand!