xgeek652
xgeek652

Reputation: 365

Nodejs cron job / daily job 2 AM

I have a cron in nodejs that executes every 5 hours, with this code :

cron.schedule("0 0 */5 * * *")

I want it to execute every day at 2 AM , what do I change ?

Thanks

Upvotes: 2

Views: 2228

Answers (1)

Romeo Ninov
Romeo Ninov

Reputation: 7225

You should make this line to be

cron.schedule("0 0 2 * * *")

Upvotes: 2

Related Questions