这怎么可能?
我目前正在使用延迟作业附带的 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?还是总是需要它?