-
Notifications
You must be signed in to change notification settings - Fork 794
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
Save() runs immediately as well #298
Comments
@rschmukler I think is strictly related with this #192 |
Hi @mirkods. You just need to call this.agenda.create(jobName, data)
.repeatEvery(cronString)
.computeNextRunAt()
.save(function () {}); |
Thanks @jakeorr! |
to be honest, i think .computeNextRunAt() should be the default case, because if you specify '1 16 * * 2,3,4,5,6', you don't expect it'll run right away. FYI, 'in 4 minutes' does not trigger right away. |
[this.agenda.create(jobName, data)
|
Hi there,
I'm having a strange behaviour, this is my code:
Every time that a job is saved its define function is called immediately and then it respects its interval.
Why?
Cheers
The text was updated successfully, but these errors were encountered: