Class: Webhookdb::Jobs::SendTestWebhook

Inherits:
Object
  • Object
show all
Extended by:
Async::Job
Includes:
Amigo::QueueBackoffJob
Defined in:
lib/webhookdb/jobs/send_test_webhook.rb

Instance Method Summary collapse

Methods included from Async::Job

extended

Instance Method Details

#_perform(event) ⇒ Object



21
22
23
24
# File 'lib/webhookdb/jobs/send_test_webhook.rb', line 21

def _perform(event)
  webhook_sub = self.lookup_model(Webhookdb::WebhookSubscription, event)
  webhook_sub.deliver_test_event
end

#dependent_queuesObject



17
18
19
# File 'lib/webhookdb/jobs/send_test_webhook.rb', line 17

def dependent_queues
  return ["critical"]
end