jobs: extract an RetryOnTranscientErrors concern

This commit is contained in:
Pierre de La Morinerie 2021-04-29 11:55:43 +00:00
parent f45a7a83fe
commit 684af77e35
5 changed files with 57 additions and 18 deletions

View 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