queues icon indicating copy to clipboard operation
queues copied to clipboard

Is it possible to create ScheduledJob with custom time interval

Open emarashliev opened this issue 1 year ago • 1 comments

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.

emarashliev avatar Jul 17 '24 22:07 emarashliev

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

0xTim avatar Aug 20 '24 14:08 0xTim