We are facing issue related to Postgres connection leaks. Sidekiq don’t release connections and keep lock on table. In case of Rails we are calling following code in config/application.rb for reaping Postgres connections. For sidekiq we are not running such code.
if defined?(PhusionPassenger) PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked Discourse.after_fork end end end