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

Occasionally some tasks which should be run at the same time have not executed #390

Open
anselmo-coolstay opened this issue Dec 26, 2022 · 3 comments

Comments

@anselmo-coolstay
Copy link

I am using node-cron@3.0.0.

I scheduled almost 20 tasks and the five tasks of them have been scheduled at the same time, 16:20 every day.
They have been worked well for 5 months without any issue and manual restart.
But, the four tasks did not run today. Only one task was executed.

Is there anyone who has similar issue with me?

@MZPL
Copy link

MZPL commented Dec 30, 2022

I'm having a similar issue on node-cron@3.0.2. I'm using the expression 0 8,14,20,2 * * *, and sometimes the execution skips at hour 8. I also have another expression scheduled at 0 8 * * *, and I noticed that sometimes only one of these two run.

@MoeIcI
Copy link

MoeIcI commented Feb 20, 2023

Hey,
I have noticed this issue as well. I have scheduled tasks at "0 6 * * Mon,Tue,Wed,Thu,Fri", "15 6 * * Mon,Tue,Wed,Thu,Fri" and "30 6 * * Mon,Tue,Wed,Thu,Fri". They work fine most of the time, but today for instance the 2nd task wasn't executed.
I already checked if the jobs could overlap, but there is enough time in between.

Edit: I use node-cron 3.0.1

@ramit-mitra
Copy link

I have a similar issue, I have two crons defined to run twice every minute, however, only the 1st one is running fn1 (the 2nd one is not getting invoked fn2). Below is the snippet:

...
const cron = require("node-cron");
...

cron.schedule("0,30 * * * * *", fn1());
cron.schedule("0,30 * * * * *", fn2());
...

It's weird because it sometimes works and sometimes doesn't. I have tried to debug the issue but without any results yet.

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

4 participants