brandonhilkert / sucker_punch

Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
MIT License
2.65k stars 114 forks source link

Recurring jobs #105

Closed nicolas-besnard closed 9 years ago

nicolas-besnard commented 9 years ago

Is there any way to do recurring jobs with this gem ? I plan to use the whenever gem. Do you know any other solution ?

brandonhilkert commented 9 years ago

@nicolas-besnard what specifically are you looking to do? There's nothing stopping you from writing a rake task that invokes a bunch of sucker punch jobs, and then using whenever to trigger that rake task at the frequency of your choice.

nicolas-besnard commented 9 years ago

I'd like to execute a jobs each 3 hours to create some statistics on my model. It's essentially calculating data to export them on an external DB.

brandonhilkert commented 9 years ago

That makes sense. Do you have to use Sucker Punch? Currently there is no automated way to do this, but the combo of whenever and rake probably make the most sense.

acrogenesis commented 8 years ago

Any updates on this issue?

brandonhilkert commented 8 years ago

@acrogenesis What updates are you looking for? I don't believe this is something Sucker Punch should be responsible for. There are a number of tools out there that do this independent of the background processing library. Let me know if I've misinterpreted what you're interested in.