Skip to content

Commit

Permalink
DeliverAuthorizationRequestWebhookJob retries until it succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Mar 28, 2024
1 parent a507158 commit 16763d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/deliver_authorization_request_webhook_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class DeliverAuthorizationRequestWebhookJob < ApplicationJob

class WebhookDeliveryFailedError < StandardError; end

retry_on(WebhookDeliveryFailedError, wait: :polynomially_longer)
retry_on(WebhookDeliveryFailedError, wait: :polynomially_longer, attempts: :unlimited)

def serialize
super.merge('tries_count' => (@attempts || 1) + 1)
Expand Down

0 comments on commit 16763d5

Please sign in to comment.