Skip to content

Commit

Permalink
feat(billing): Retry finalize jobs on Sequence error
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Aug 2, 2024
1 parent d3eeab8 commit 599194c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/invoices/finalize_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Invoices
class FinalizeJob < ApplicationJob
queue_as 'invoices'

retry_on Sequenced::SequenceError, wait: :polynomially_longer

def perform(invoice)
Invoices::RefreshDraftAndFinalizeService.call(invoice:)
end
Expand Down

0 comments on commit 599194c

Please sign in to comment.