Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Stop backround jobs task.
Browse files Browse the repository at this point in the history
  • Loading branch information
benubois committed Feb 21, 2018
1 parent 52e098a commit 2990bea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/capistrano/tasks/stop_bg.rake
@@ -0,0 +1,17 @@
namespace :deploy do
desc 'Stop services'
task :stop_bg do
on roles :all do

invoke "deploy:quiet"

sleep(10)

begin
execute :sudo, :stop, :workers
rescue SSHKit::Command::Failed
end

end
end
end

0 comments on commit 2990bea

Please sign in to comment.