thinkfuture
thinkfuture

Reputation: 41

rake aborted! Don't know how to build task 'jobs:work'

Hi all: I'm on Heroku, installed delayed_job and am getting the above error when I attempt to run a background job. I've tried filing a ticket and scouring the net to no avail.

Thanks...Chris

Upvotes: 1

Views: 3485

Answers (1)

tfe
tfe

Reputation: 34932

You only use rake jobs:work to start a DJ worker locally. When on Heroku, you have to add workers: heroku workers +1 --app myapp. Those cost money though, so you might want to set workers back to 0 when you're done with it.

Edit:

Looks like this is clearly explained in the docs: http://docs.heroku.com/delayed-job#running-dj-workers-on-heroku.

Upvotes: 1

Related Questions