Resque Job永远滞留在待处理状态

时间:2015-11-08 22:12:31

标签: ruby-on-rails resque

我从控制器那里打电话:

Resque.enqueue(SendUninstallFeedbackEmail, shop.id)

我的工人:

require 'resque-retry'

class SendUninstallFeedbackEmail
    extend Resque::Plugins::Retry

    @queue = :uninstall_feedback_queue

    @retry_limit = 3
    @retry_delay = 60

    def self.perform(shop_id)
      shop = Shop.find(shop_id)
      NotificationMailer.uninstall_feedback(shop).deliver_now
    end

end

当我触发Resque.enqueue(SendUninstallFeedbackEmail, shop.id)时,作业显示在正确队列下的resque UI中,但它永远保持为“待处理”状态。

这是我的Procfile:

web: bundle exec rails s
redis: redis-server
worker: env QUEUE=* bundle exec rake environment resque:work

我哪里错了?

0 个答案:

没有答案