Reputation: 2032
I'm writting webtool using Ruby+Rails. I decided to ask about already existing solution before inventing mine.
Task:
I need a pool of background jobs, that will run periodicaly (user sets his interval). There are plenty solutions like Resque or Sidekiq, but they provide "one-time" jobs. User can create new task, that gets into "pool".
Are there any solutions for this?
Upvotes: 1
Views: 120
Reputation: 106972
One simple solution might be to use cron to enqueue background jobs.
Another option might be to use an extension to Sidekiq that handles periodical jobs: sidekiq-scheduler for example.
Upvotes: 1