toy
toy

Reputation: 12141

Resque + Sinatra + Heroku how to run the jobs continuously

I have already setup Redis + Resque and deploy on heroku already. Everything works fine, and the jobs are added to the queue correctly. But it won't be run until I run command

heroku run rake jobs:work

How do I tell heroku to run the jobs in the queue automatically in background?

I'm using Sinatra and not Rails.

Thank you very much.

Upvotes: 1

Views: 1080

Answers (2)

Tom Andersen
Tom Andersen

Reputation: 7200

There is a much better (IMHO) way to do this using IronWorker. Iron.io will basically always be cheaper, and I find the approach easier to set up and use. http://www.iron.io/

Upvotes: 0

Neil Middleton
Neil Middleton

Reputation: 22238

You need to add a worker process to your application that will automatically run the rake jobs:work process for you continuously.

You can do this via the UI on Heroku.

Upvotes: 1

Related Questions