Dns::QueryLog.connection.instance_variable_get('@config') ActiveRecord::Base.connection_handler.connection_pools.map{|x| x.connection.instance_variable_get('@config') } ActiveRecord::Base.connection_pool.checkin( Dns::QueryLog.connection ) ActiveRecord::Base.connection_pool.connections.each{|x| x.close if x.instance_variable_get('@config')[:host] == Platform.current.timescale_address} https://github.com/mperham/connection_pool
Posts
Showing posts from July, 2020