diff options
Diffstat (limited to 'lib/gitlab/sidekiq_middleware/retry_error.rb')
-rw-r--r-- | lib/gitlab/sidekiq_middleware/retry_error.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/sidekiq_middleware/retry_error.rb b/lib/gitlab/sidekiq_middleware/retry_error.rb new file mode 100644 index 00000000000..372213a8e6a --- /dev/null +++ b/lib/gitlab/sidekiq_middleware/retry_error.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Gitlab + module SidekiqMiddleware + # Sidekiq retry error that won't be reported to Sentry + # Use it when a job retry is an expected behavior + RetryError = Class.new(StandardError) + end +end |