Skip to content

Commit

Permalink
suppress backtrace of ConcurrencyExceededError (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
reczy committed Aug 24, 2021
1 parent 2190ed1 commit 2d8fe9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/good_job/active_job_extensions/concurrency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ module ActiveJobExtensions
module Concurrency
extend ActiveSupport::Concern

ConcurrencyExceededError = Class.new(StandardError)
class ConcurrencyExceededError < StandardError
def backtrace
[] # suppress backtrace
end
end

included do
class_attribute :good_job_concurrency_config, instance_accessor: false, default: {}
Expand Down

0 comments on commit 2d8fe9d

Please sign in to comment.