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

Comments

Popular posts from this blog

ELK - Elastic | Logstash | Kibana

Akibat dari tiada jadual selenggara

Cordova CORS-CORB over laravel api server