Closed maxfi closed 3 years ago
Hmm, that doesn't seem right. Thanks for providing a repro, will look into it.
Found the offender: https://github.com/quirrel-dev/quirrel/blob/b72891d98b819d200151d7df33e5778411045daf/api/src/scheduler/jobs-repo.ts#L150
I guess this should have been caught by one of the functional tests, but apparently not this specific combination of delay
and repeat.every
...
Will provide a PR immediately.
Awesome. Thanks @Skn0tt. 🙏
Fixed in v0.10.1.
Setting a delay doesn't actually delay the execution of the job. I've only tested this in development mode so not sure if it's also a problem in the hosted version? With the following
enqueue
the job gets executed immediately:Full repro here: https://github.com/maxfi/quirrel-dev-water-reminder-demo