delayed_job queue not being processed on Heroku

后端 未结 4 483
暖寄归人
暖寄归人 2021-01-23 02:14

I\'m running a Rails 3 app with delayed_job. The issue I\'ve come across is that though the app is correctly adding jobs to the queue, they are never being processed.

4条回答
  •  暖寄归人
    2021-01-23 02:59

    Are you running the delayed_job daemon in the same environment in which the application is running?

    Try working the jobs manually using:
    rake RAILS_ENV=development jobs:work

    If you are running your app in production mode then you need to start delayed_job daemon as:
    RAILS_ENV=production script/delayed_job start

提交回复
热议问题