mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
13 lines
313 B
Ruby
13 lines
313 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Activities
|
|
class SendWebhookJob < ApplicationJob
|
|
queue_as :webhooks
|
|
|
|
retry_on StandardError, attempts: 3, wait: :exponentially_longer
|
|
|
|
def perform(webhook, activity)
|
|
Activities::ActivityWebhookService.new(webhook, activity).send_webhook
|
|
end
|
|
end
|
|
end
|