"Without no reason" sometimes cron doesn't start
See original GitHub issueHi,
i’v some unexplainded troubles, i’v multiple cron scheduled on my “app boostraper” :
cron.schedule(
'0 10 * * *',
() => {
try {
console.log('*START Task*')
} catch (e) {}
},
{
scheduled: true,
timezone: 'Europe/Paris',
})
cron.schedule(
'0 11 * * *',
() => {
try {
atask2()
} catch (e) {}
},
{
scheduled: true,
timezone: 'Europe/Paris',
})
cron.schedule(
'0 0 * * 1',
() => {
try {
atask3()
} catch (e) {}
},
{
scheduled: true,
timezone: 'Europe/Paris',
})
Sometimes the 10 AM cron not starting, any reasons ? (it’s happend “randomly” once a week)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
Top Reasons Your Cron Job Isn't Running - Airplane.dev
This article walks through the most common reasons why your cron job may not be working as expected: schedule errors, environmental changes, ...
Read more >Troubleshooting: crontab not running - Linux Hint
The first reason is that your cron daemon might not be working for any reason, resulting in your crontab failing. There also exists...
Read more >Why is my crontab not working, and how can I troubleshoot it?
The vast majority of "my cron script doesn't work" problems are caused by this restrictive path. If your command is in a different...
Read more >linux - CronJob not running - Stack Overflow
But the cronjob does not run. I have tried checking if the cronjob is running using pgrep cron and that gives process id...
Read more >Cron job troubleshooting guide - Cronitor
The common reasons cron jobs fail · System resources have been depleted. The most stable cron job is no match for a disk...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I met the same issue. I have a program that invokes a function once per hour by node-cron. The cron string is
30 0 * * * *
.I have run it for 6 days, but it did not work at 2021-11-22 21:00:30 KST. This is my log at that time:
I have noticed the same. Cron job scheduled every 5 minutes misses a start every day or every two days.