2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ci
|
|
|
|
class BuildReportResultWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include PipelineBackgroundQueue
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
tags :requires_disk_io
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(build_id)
|
|
|
|
Ci::Build.find_by_id(build_id).try do |build|
|
|
|
|
Ci::BuildReportResultService.new.execute(build)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|