21 lines
427 B
Ruby
21 lines
427 B
Ruby
# 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
|