-
Notifications
You must be signed in to change notification settings - Fork 35
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
config.waiting does not work #51
Comments
I am having the same problem. I have a job that needs to run every 5 minutes, but sometimes it takes more than that to finish, so I tried setting 'waiting' to true, but it doesn't seems to work. Here is my code: Am I doing something wrong? |
Hi,
If needStop is true the job is removed from the internal job list and will never reset at runtime. I solved the problem by using @miaowing It would be very nice to build a new version for NPM based on your latest code on github. That fixes the bug. I did it with the sources and it worked :-) |
Any update on this? |
For a task that may need to run more than 5 minutes, I set config.waiting :true as I wish that the scheduler will not schedule job when this job is running.
@Cron('*/5 * * * *', {
startTime: new Date(),
waiting : true,
})
But seems the configuration does not work, the job still is able to run, and two same jobs run at the same time.
The text was updated successfully, but these errors were encountered: