Closed watzon closed 2 years ago
Nvm I found it in the code https://github.com/mosquito-cr/mosquito/blob/master/src/mosquito/queued_job.cr#L112
I'll see about getting it added to the Wiki. I wasn't able to find anything there.
@watzon thank you for pointing out the documentation gap around this feature. I've added a page to the wiki: https://github.com/mosquito-cr/mosquito/wiki/Scheduling-Queued-Jobs-for-later
It would be nice if it were possible to queue a delayed job. Maybe with the following API:
in the first case it would save the job in redis with the timestamp
Time.utc + 30.seconds
and in the second it would save it with the timestamp of the new year, then whenTime.utc
is greater than or equal to that timestamp it would add the job to the queue.Sidekiq has something like this already, but I like Mosquito more and would like to see something like that here.