diff options
Diffstat (limited to 'app/workers/ci')
-rw-r--r-- | app/workers/ci/build_report_result_worker.rb | 18 | ||||
-rw-r--r-- | app/workers/ci/pipeline_artifacts/create_quality_report_worker.rb | 20 |
2 files changed, 20 insertions, 18 deletions
diff --git a/app/workers/ci/build_report_result_worker.rb b/app/workers/ci/build_report_result_worker.rb deleted file mode 100644 index 01a45490541..00000000000 --- a/app/workers/ci/build_report_result_worker.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -module Ci - class BuildReportResultWorker - include ApplicationWorker - include PipelineBackgroundQueue - - tags :requires_disk_io - - idempotent! - - def perform(build_id) - Ci::Build.find_by_id(build_id).try do |build| - Ci::BuildReportResultService.new.execute(build) - end - end - end -end diff --git a/app/workers/ci/pipeline_artifacts/create_quality_report_worker.rb b/app/workers/ci/pipeline_artifacts/create_quality_report_worker.rb new file mode 100644 index 00000000000..810106e8d9c --- /dev/null +++ b/app/workers/ci/pipeline_artifacts/create_quality_report_worker.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Ci + module PipelineArtifacts + class CreateQualityReportWorker + include ApplicationWorker + + queue_namespace :pipeline_background + feature_category :code_testing + + idempotent! + + def perform(pipeline_id) + Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline| + Ci::PipelineArtifacts::CreateCodeQualityMrDiffReportService.new.execute(pipeline) + end + end + end + end +end |