Sha256: 72b11bb281584aa9b53851ad76ba317fcc1f110bf0694346afd031ca13a5c89f
Contents?: true
Size: 948 Bytes
Versions: 25
Compression:
Stored size: 948 Bytes
Contents
# Copyright © 2012 The Pennsylvania State University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. 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! Resque::Pool.after_prefork do |job| ActiveRecord::Base.establish_connection Resque.redis.client.reconnect end end
Version data entries
25 entries across 25 versions & 2 rubygems