node-cron / node-cron

A simple cron-like job scheduler for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reschedule

wwwprateekmishra opened this issue · comments

I am scheduled the cron job and then start a cron job but I want to reschedule this job . How to achieve this task

commented
const yourCRON = cron.schedule('45 21 25 2 *', () => {
  console.log('Function called on 25th February at 21:45');
})

//start cron
yourCRON.start()

//stop cron
yourCRON.stop()