mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Stop/restar que without trace output #2724
This commit is contained in:
parent
c484fbd99d
commit
48c22bb538
2 changed files with 7 additions and 2 deletions
|
@ -214,7 +214,7 @@ task deploy: :environment do
|
|||
to :launch do
|
||||
invoke :restart
|
||||
invoke :'deploy:cleanup'
|
||||
queue! "QUE_WORKER_COUNT=1 #{rake} daemon:que:restart" if que_restart
|
||||
invoke :que_restart if que_restart
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -245,6 +245,11 @@ task restart: :environment do
|
|||
queue "mkdir -p #{deploy_to}/current/tmp; touch #{deploy_to}/current/tmp/restart.txt"
|
||||
end
|
||||
|
||||
desc 'Restart que server'
|
||||
task que_restart: :environment do
|
||||
queue "/etc/init.d/que restart"
|
||||
end
|
||||
|
||||
namespace :cron do
|
||||
desc 'Setup cron tasks.'
|
||||
task setup: :environment do
|
||||
|
|
|
@ -26,7 +26,7 @@ Que.mode = :async
|
|||
# the rake task in tasks/safe_shutdown.rb.
|
||||
|
||||
stop = false
|
||||
%w( INT TERM ).each do |signal|
|
||||
%w( INT ).each do |signal|
|
||||
trap(signal) { stop = true }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue