queues
queues copied to clipboard
Is it possible to create ScheduledJob with custom time interval
There is no way, at least is not clear way to schedule a job (ScheduledJob) with custom time interval
It will be nifty to be able to write something like app.queues.schedule(EmailJob()).every(seconds: 30) in order to run my job every 30 seconds.
Currently there is not, you need to add it twice for 0 and 30 seconds for each minute. It's something of interest but unlikely to happen anytime soon until after Vapor 5 unless someone from the community wants to try and implement it