Sha256: 48248cff742a02617616eec7d2b7950ceb821fb845ab76df8050799931096823

Contents?: true

Size: 375 Bytes

Versions: 26

Compression:

Stored size: 375 Bytes

Contents

require 'resque/pool/tasks'

# This provides access to the Rails env within all Resque workers
task 'resque:setup' => :environment

# Set up resque-pool
task 'resque:pool:setup' do
  ActiveRecord::Base.connection.disconnect!
  require 'resque/pool'
  Resque::Pool.after_prefork do |job|
    ActiveRecord::Base.establish_connection
    Resque.redis.client.reconnect
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
curation_concerns-0.14.0.pre3 lib/tasks/resque.rake
curation_concerns-0.14.0.pre2 lib/tasks/resque.rake
curation_concerns-0.14.0.pre1 lib/tasks/resque.rake
curation_concerns-0.13.1 lib/tasks/resque.rake
curation_concerns-0.13.0 lib/tasks/resque.rake
curation_concerns-0.12.0 lib/tasks/resque.rake
curation_concerns-0.12.0.pre9 lib/tasks/resque.rake
curation_concerns-0.12.0.pre8 lib/tasks/resque.rake
curation_concerns-0.12.0.pre7 lib/tasks/resque.rake
curation_concerns-0.12.0.pre6 lib/tasks/resque.rake
curation_concerns-0.12.0.pre5 lib/tasks/resque.rake
curation_concerns-0.12.0.pre4 lib/tasks/resque.rake
curation_concerns-0.12.0.pre3 lib/tasks/resque.rake
curation_concerns-0.12.0.pre2 lib/tasks/resque.rake
curation_concerns-models-0.12.0.pre1 lib/tasks/resque.rake
curation_concerns-models-0.11.0 lib/tasks/resque.rake
curation_concerns-models-0.11.0.rc1 lib/tasks/resque.rake
curation_concerns-models-0.10.0 lib/tasks/resque.rake
curation_concerns-models-0.9.0 lib/tasks/resque.rake
curation_concerns-models-0.8.0 lib/tasks/resque.rake