class Sentry::BackgroundWorker

def _perform(&block)

def _perform(&block)
  # make sure the background worker returns AR connection if it accidentally acquire one during serialization
  ActiveRecord::Base.connection_pool.with_connection do
    block.call
  end
end