Cron runs twice at the set time
See original GitHub issueI want to run it every 5 minute from 8-22. It runs two times every 5 minutes.
I am using node-schedule version 1.0.0 with node version 5.0.0.
var schedule = require('node-schedule');
var postman = schedule.scheduleJob('0 */5 8-22 * * *', postmanFunction);
Any help would be appreciated.
Issue Analytics
- State:
- Created 8 years ago
- Comments:53 (21 by maintainers)
Top Results From Across the Web
Why is this cron entry executed twice? - Stack Overflow
This entry works but every 5 minutes it gets executed twice, why? In /var/log/cron it shows: Jun 16 22:20:01 Test CROND[12512]: (root) ...
Read more >Resolved - My cron jobs runs twice - Plesk Forum
Problem begins when I have noticed awhile that all cron job tasks are marked as disabled, but they were actually running.
Read more >What could cause a cron to run twice at the same moment?
The first explanation that comes to me is that someone manually set the clock, or has set up a script that forcefully resets...
Read more >Why is cron running twice? - Server Fault
I wanted to execute my PHP mailing-script automatically with cron. I always get the mail twice though. The script runs fine when started ......
Read more >Cron job twice a day (at 09:00 and 21:00)
Cron Expression To Go. Cron expression to run a job twice a day at 9am and 9pm. "At 09:00 and 21:00". next at...
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
Thanks you so muchhhhh.
I was able to solve it, the problem was due to the multiple clusters node was running on. As in my case node was running on two clusters so it executed the job twice.