Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reschedule #388

Open
wwwprateekmishra opened this issue Dec 20, 2022 · 1 comment
Open

Reschedule #388

wwwprateekmishra opened this issue Dec 20, 2022 · 1 comment

Comments

@wwwprateekmishra
Copy link

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

@Gegam
Copy link

Gegam commented Feb 26, 2023

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants