gitlab-org--gitlab-foss/app/workers/build_finished_worker.rb

15 lines
360 B
Ruby
Raw Normal View History

class BuildFinishedWorker
include ApplicationWorker
include PipelineQueue
2017-11-28 11:16:50 -05:00
queue_namespace :pipeline_processing
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
2017-09-25 12:54:08 -04:00
BuildTraceSectionsWorker.perform_async(build.id)
2016-10-14 11:48:28 -04:00
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
end
end