Welcome to mirror list, hosted at ThFree Co, Russian Federation.

send_uninstalled_hook_worker.rb « jira_connect « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 530ef4a8b8a93bedca04db9308ba08b0a49ad77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module JiraConnect
  class SendUninstalledHookWorker
    include ApplicationWorker

    data_consistency :delayed
    queue_namespace :jira_connect
    feature_category :integrations
    urgency :low

    idempotent!

    worker_has_external_dependencies!

    def perform(installation_id, instance_url)
      installation = JiraConnectInstallation.find_by_id(installation_id)

      JiraConnectInstallations::ProxyLifecycleEventService.execute(installation, :uninstalled, instance_url)
    end
  end
end