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