jobs: extract an RetryOnTranscientErrors
concern
This commit is contained in:
parent
f45a7a83fe
commit
684af77e35
5 changed files with 57 additions and 18 deletions
9
spec/lib/active_job/retry_on_transient_errors_spec.rb
Normal file
9
spec/lib/active_job/retry_on_transient_errors_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
describe ActiveJob::RetryOnTransientErrors do
|
||||
# rubocop:disable Rails/ApplicationJob
|
||||
class Job < ActiveJob::Base
|
||||
include ActiveJob::RetryOnTransientErrors
|
||||
end
|
||||
# rubocop:enable Rails/ApplicationJob
|
||||
|
||||
it_behaves_like 'a job retrying transient errors', Job
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue