Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_failure_history_worker.rb « ci « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1562cb38365b907b7c34c78c7e92ed7aa64c9cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Ci
  class TestFailureHistoryWorker
    include ApplicationWorker
    include PipelineBackgroundQueue

    idempotent!

    def perform(pipeline_id)
      Ci::Pipeline.find_by_id(pipeline_id).try do |pipeline|
        Ci::TestFailureHistoryService.new(pipeline).execute
      end
    end
  end
end