Skip to content
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

Is it possible to create ScheduledJob with custom time interval #133

Open
emarashliev opened this issue Jul 17, 2024 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@emarashliev
Copy link

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 emarashliev added the enhancement New feature or request label Jul 17, 2024
@0xTim
Copy link
Member

0xTim commented Aug 20, 2024

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 0xTim added the help wanted Extra attention is needed label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants