summaryrefslogtreecommitdiff
path: root/lib/tasks/resque.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/resque.rake')
-rw-r--r--lib/tasks/resque.rake23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/tasks/resque.rake b/lib/tasks/resque.rake
deleted file mode 100644
index 0c3b93c5bed..00000000000
--- a/lib/tasks/resque.rake
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'resque/tasks'
-
-namespace :resque do
- task setup: :environment do
- 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
-
- Resque.workers.each do |worker|
- pids << worker.to_s.split(/:/).second
- end
-
- if pids.size > 0
- system("kill -QUIT #{pids.join(' ')}")
- end
- end
-end
-
-desc "Alias for resque:work (To run workers on Heroku)"
-task "jobs:work" => "resque:work"