Sha256: 9f9f0507988726936b44e204c76ed53bdc4f3431321c4a807dec7dab216cdb42

Contents?: true

Size: 285 Bytes

Versions: 13

Compression:

Stored size: 285 Bytes

Contents

module Sentry
  class BackgroundWorker
    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
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sentry-rails-5.2.1 lib/sentry/rails/background_worker.rb
sentry-rails-5.2.0 lib/sentry/rails/background_worker.rb
sentry-rails-5.1.1 lib/sentry/rails/background_worker.rb
sentry-rails-5.1.0 lib/sentry/rails/background_worker.rb
sentry-rails-5.0.2 lib/sentry/rails/background_worker.rb
sentry-rails-5.0.1 lib/sentry/rails/background_worker.rb
sentry-rails-5.0.0 lib/sentry/rails/background_worker.rb
sentry-rails-4.9.2 lib/sentry/rails/background_worker.rb
sentry-rails-4.9.1 lib/sentry/rails/background_worker.rb
sentry-rails-4.9.0 lib/sentry/rails/background_worker.rb
sentry-rails-4.8.3 lib/sentry/rails/background_worker.rb
sentry-rails-4.8.2 lib/sentry/rails/background_worker.rb
sentry-rails-4.8.1 lib/sentry/rails/background_worker.rb