Class: Webhookdb::Jobs::LoggedWebhooksReplay

Inherits:
Object
  • Object
show all
Extended by:
Async::Job
Defined in:
lib/webhookdb/jobs/logged_webhook_replay.rb

Instance Method Summary collapse

Methods included from Async::Job

extended

Instance Method Details

#_perform(event) ⇒ Object



11
12
13
14
15
16
# File 'lib/webhookdb/jobs/logged_webhook_replay.rb', line 11

def _perform(event)
  lwh = self.lookup_model(Webhookdb::LoggedWebhook, event)
  self.with_log_tags(service_integration_opaque_id: lwh.service_integration_opaque_id) do
    lwh.retry_one(truncate_successful: true)
  end
end