method
retire_old_connections
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
retire_old_connections(max_age = @max_age)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 797
def retire_old_connections(max_age = @max_age)
max_age ||= Float::INFINITY
sequential_maintenance -> c { c.connection_age&.>= c.pool_jitter(max_age) } do |conn|
# Disconnect, then return the adapter to the pool. Preconnect will
# handle the rest.
conn.disconnect!
end
end