question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cron job Executes at every 5 mins Failed.

See original GitHub issue

I am using 1.3.0 version and i want to execute cron job at every 5 mins. So I have write down one recurrence rule for that.

RecurrenceRule {
  recurs: true,
  year: null,
  month: null,
  date: null,
  dayOfWeek: null,
  hour: null,
  minute: '*/5',
  second: 0 }

var j = schedule.scheduleJob(rule, function (fireDate) {
     console.log('demo', fireDate)
 })

But it does not execute. Is there any reason behind it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
santigimenocommented, Feb 2, 2019

The RecurrenceRule should be:

const RR = {
  year: null,
  month: null,
  date: null,
  dayOfWeek: null,
  hour: null,
  minute: [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ],
  second: 0 
};
0reactions
santigimenocommented, Feb 2, 2019

Feel free to re-open if there’s still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Execute crontab Every 5 Minutes - Linux Hint
A guide on how to execute crontab every 5 minutes to schedule a cron job using several examples to execute a job on...
Read more >
Cron job troubleshooting guide - Cronitor
In this guide. The common reasons cron jobs fail; What to do if your cron job isn't running when expected; What to do...
Read more >
Crontab is failing every five minutes - Server Fault
I have tried to show crontab jobs for all users, but there are no crontab jobs, that is running every 5 minute, so...
Read more >
Cron job every 5 minutes - Crontab.guru
Cron job every 5 minutes is a commonly used cron schedule. We created Cronitor because cron itself can't alert you if your jobs...
Read more >
Cron job auto retry if any job get failed - Stack Overflow
Cron does only run once at specific time or every minutes/hours/days etc. It doesn't check the return code. So it's not that easy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found