summaryrefslogtreecommitdiff
path: root/app/workers/build_finished_worker.rb
blob: 97d80305bec92bb4bb3b3074edc343073ef1c90d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class BuildFinishedWorker
  include ApplicationWorker
  include PipelineQueue

  queue_namespace :pipeline_processing

  def perform(build_id)
    Ci::Build.find_by(id: build_id).try do |build|
      BuildTraceSectionsWorker.perform_async(build.id)
      BuildCoverageWorker.new.perform(build.id)
      BuildHooksWorker.new.perform(build.id)
    end
  end
end