Delayed job wont start using Capistrano

前端 未结 6 1371
醉话见心
醉话见心 2021-02-04 13:14

I cannot start delayed job process using a capistrano recipe. Here\'s the error I am getting.

/usr/local/lib/ruby/gems/1.9.1/gems/delayed_job-2.1.1/lib/delayed/         


        
6条回答
  •  旧时难觅i
    2021-02-04 13:39

    This is how I fixed the issue, I passed an explicit pids dir parameter using "--pid-dir". Not sure if this is perfect, but it worked.

    task :restart, :roles => :app do
      run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job -n #{dj_proc_count} --pid-dir=#{app_root}/shared/dj_pids restart"
    end
    

提交回复
热议问题