Sha256: 86e626a382f3f9423fb82e0ae1cb729fe2f578ff9e81ccd9c2e48a2e9bb8d466
Contents?: true
Size: 326 Bytes
Versions: 23
Compression:
Stored size: 326 Bytes
Contents
module Sentry class BackgroundWorker def perform(&block) @executor.post do # 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 end end end
Version data entries
23 entries across 23 versions & 1 rubygems