summaryrefslogtreecommitdiff
path: root/app/workers/deployments/finished_worker.rb
blob: 90bbc193651736b11246faa8fec8026b8a44f50a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Deployments
  class FinishedWorker
    include ApplicationWorker

    queue_namespace :deployment
    feature_category :continuous_delivery
    worker_resource_boundary :cpu

    def perform(deployment_id)
      Deployment.find_by_id(deployment_id).try(:execute_hooks)
    end
  end
end