scinote-web/app/jobs/activities/send_webhook_job.rb

14 lines
313 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Activities
class SendWebhookJob < ApplicationJob
queue_as :webhooks
retry_on StandardError, attempts: 3, wait: :exponentially_longer
def perform(webhook, activity)
2021-06-17 20:54:30 +08:00
Activities::ActivityWebhookService.new(webhook, activity).send_webhook
end
end
end