Method: Webhookdb::WebhookSubscription#_retry

Defined in:
lib/webhookdb/webhook_subscription.rb

#_retry(delivery, attempt) ⇒ Object



154
155
156
157
# File 'lib/webhookdb/webhook_subscription.rb', line 154

def _retry(delivery, attempt)
  delay = self.class.backoff_for_attempt(attempt)
  Webhookdb::Jobs::WebhookSubscriptionDeliveryEvent.perform_in(delay, delivery.id)
end