-
By simply doing this? Am I correct? import { CronJob } from 'cron';
const jobOne = new CronJob(
'*/5 * * * * *', // cronTime
function () {
console.log('You will see this message every 5 second');
}, // onTick
null, // onComplete
true, // start
'America/Los_Angeles' // timeZone
);
const jobTwo = new CronJob(
'*/15 * * * * *', // cronTime
function () {
console.log('You will see this message every 15 second');
}, // onTick
null, // onComplete
true, // start
'America/Los_Angeles' // timeZone
); |
Beta Was this translation helpful? Give feedback.
Answered by
sheerlox
Nov 7, 2023
Replies: 1 comment
-
Yes, that will work! 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tungrix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that will work! 😉