Removed resque-pool again - will be replaced by sidekiq

This commit is contained in:
Philipp Bayer
2013-03-07 14:21:41 +10:00
parent 0c41a570c1
commit cef35018ff
4 changed files with 1 additions and 15 deletions

View File

@@ -44,8 +44,6 @@ gem 'recommendify',:git => 'git://github.com/paulasmuth/recommendify.git', :ref
# for jobs
gem 'resque', '1.23.0'
gem 'resque-loner'
# easier handling of workers
gem 'resque-pool', :git => 'git://github.com/nevans/resque-pool.git'
#group :production do
# gem 'rpm_contrib'

View File

@@ -1 +0,0 @@
parse,plos,zipfulldata,preparse,mendeley,snpedia,mendeley_details,mailnewgenotype,recommendphenotypes,recommendvariation: 1

View File

@@ -1,17 +1,6 @@
require 'resque/pool/tasks'
require 'resque'
task "resque:setup" => :environment do
# FIX FOR "PG::Error: ERROR: prepared statement "a1" already exists"
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
task "resque:pool:setup" do
# close any sockets or files in pool manager
ActiveRecord::Base.connection.disconnect!
# and re-open them in the resque worker parent
Resque::Pool.after_prefork do |job|
ActiveRecord::Base.establish_connection
end
end

View File

@@ -3,4 +3,4 @@
screen -d -m -S "Server" bundle exec rails s
screen -d -m -S "Solr" bundle exec rake sunspot:solr:run
screen -d -m -S "Redis" redis-server
bundle exec resque-pool --daemon --environment development --term-graceful
screen -d -m -S "Resque-worker" bundle exec rake environment resque:work QUEUE=*