0
這怎麼可能?延遲作業Capistrano任務無需每次重新啓動
我現在使用自帶的delayed_job
Capistrano的食譜這是我有:
# Delayed Job recipes
require "delayed/recipes"
set :rails_env, "production" # added for delayed job
after "deploy:stop", "delayed_job:stop"
after "deploy:start", "delayed_job:start"
after "deploy:restart", "delayed_job:restart"
我不很瞭解Capistrano的階段,可能的解決方案是設置正確的任務向右相。
更新
每次我部署我得到
executing `delayed_job:restart'
這是真的需要?有沒有辦法在需要時重新啓動delayed_job?還是總是需要?
我不明白是什麼問題?你想達到什麼目的? –