mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
Removed resque-pool again - will be replaced by sidekiq
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -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'
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
parse,plos,zipfulldata,preparse,mendeley,snpedia,mendeley_details,mailnewgenotype,recommendphenotypes,recommendvariation: 1
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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=*
|
||||
|
||||
Reference in New Issue
Block a user