Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/resque.rake')
-rw-r--r--lib/tasks/resque.rake16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/tasks/resque.rake b/lib/tasks/resque.rake
index 0c3b93c5bed..e469aef3f94 100644
--- a/lib/tasks/resque.rake
+++ b/lib/tasks/resque.rake
@@ -2,20 +2,20 @@ require 'resque/tasks'
namespace :resque do
task setup: :environment do
- Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
+ #Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
desc "Resque | kill all workers (using -QUIT), god will take care of them"
task :stop_workers => :environment do
- pids = Array.new
+ #pids = Array.new
- Resque.workers.each do |worker|
- pids << worker.to_s.split(/:/).second
- end
+ #Resque.workers.each do |worker|
+ #pids << worker.to_s.split(/:/).second
+ #end
- if pids.size > 0
- system("kill -QUIT #{pids.join(' ')}")
- end
+ #if pids.size > 0
+ #system("kill -QUIT #{pids.join(' ')}")
+ #end
end
end