Gerard
Gerard

Reputation: 4848

Heroku rake jobs:work

I'm running delayed jobs on my heroku-hosted application and, naturally enough, the jobs only run when I have ran 'heroku rake jobs:work' in a terminal window. However, when I close the terminal window, the job seems to stop processing.

Is there a way to run this job independently of my terminal?

Thanks.

Upvotes: 1

Views: 863

Answers (2)

Sam 山
Sam 山

Reputation: 42863

You need workers for delayed job to work. You can add them in your console:

heroku workers 1

Upvotes: 3

Mario Uher
Mario Uher

Reputation: 12397

Yeah, just add a worker at Heroku in the resource panel of your app. It should work automatically on Aspen and Bamboo stacks, and for Cedar stacks and more information about Heroku and DJ be sure to checkout the article at Heroku's devcenter:

enter image description here

Upvotes: 1

Related Questions