← Back to Upcase

Recurring background jobs

(Stefan Schmidt) #1

Hey, I’m currently working on an API.
I’d like to create an API where users can sign-up to get informed frequently about, let’s say the weather at their current location. The user should be able to set a personal preferred frequency.
Let’s say user A signs up to get informed 3 times a day about the weather in New York.
How could I implement this kind of recurring jobs?
Could I use resque for that?

Happy to hear your ideas :smile:

(Geoff Harcourt) #2


There’s a new add-on for Sidekiq called Sidetiq that you might find interesting: https://github.com/tobiassvn/sidetiq

(Stefan Schmidt) #3

Thanks, think that’s exactly what I was looking for!
I should pay more attention to ruby weekly :smile:

(Chad Pytel) #4

Also, @schlubbi if you’re deployed to heroku, you can use the Heroku scheduler addon to do this.