2017-02-18 56 views
0

所以这是我第一次与积极的工作。我选择了sidekiq适配器,目前我遇到了这个问题。 mypageSidekiq积极的工作职能perform_later不工作

我想排队我的工作,一次运行一个,所以我认为使用perform_later将是要走的路。但是,看来Rails的ActiveJob功能甚至没有工作。

我也是目前按照本教程以及设置我的导轨的积极工作 the video tut

回答

0

您应该设置sidekiq为默认队列适配器application.rb中

# config/application.rb 
module YourApp 
    class Application < Rails::Application 
    # Be sure to have the adapter's gem in your Gemfile 
    # and follow the adapter's specific installation 
    # and deployment instructions. 
    config.active_job.queue_adapter = :sidekiq 
    end 
end