-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Schedule job every x minutes #56
Comments
ok.. so I kinda found that this works. for doing something every 10 mins.. but surely we can come up with something easier:
|
I don't think this is supported yet. Maybe this would be a good API: app.jobs.schedule(SomeJob()).minutely().every(10) |
@tanner0101 That looks like it would make sense.. everything I was thinking about the other day.. just didn't convey what it should do. |
My temporary approach for running a job every 5 minutes:
|
👍 Would be cool if the schedule builder was public as well so you can implement your own, e.g.: app.jobs.schedule(SomeJob()).custom(SolarNoonScheduler(lat: 78.651, long: 376.990)) |
Issue seems to be quiet but I too would love this functionality, my workaround is very much similar to Kevin's. Though I've made it a little more flexible in an extension 😄
|
Looks like there is no way to make ScheduledJobs run every X hours or X Mins.
The current helpers if I am not mistaken are every 1 min, 1 hour..
I don't see a way to create a ScheduledBuilder and use that to schedule a job.
looks like the
jobs.schedule()
calls the mutating functionself.storage.configuration.schedule(job, builder: builder)
which is internal.The text was updated successfully, but these errors were encountered: