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

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

module Ci
  module JobArtifacts
    class ExpireProjectBuildArtifactsWorker
      include ApplicationWorker

      data_consistency :always

      feature_category :build_artifacts
      idempotent!

      def perform(project_id)
        return unless Project.id_in(project_id).exists?

        ExpireProjectBuildArtifactsService.new(project_id, Time.current).execute
      end
    end
  end
end