instance method
recycle!
Ruby on Rails 8.1.2
Since v8.1.2Signature
recycle!()
Immediately mark all current connections as due for replacement, equivalent to them having reached max_age – even if there is no max_age configured.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 841
def recycle!
synchronize do
return if self.discarded?
@connections.each do |conn|
conn.force_retirement
end
end
retire_old_connections
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 841
· View on GitHub
· Improve this page
· Find usages on GitHub