diff options
Diffstat (limited to 'app/workers/ci')
3 files changed, 22 insertions, 2 deletions
diff --git a/app/workers/ci/build_finished_worker.rb b/app/workers/ci/build_finished_worker.rb index aa12bdb009e..56cfaa7e674 100644 --- a/app/workers/ci/build_finished_worker.rb +++ b/app/workers/ci/build_finished_worker.rb @@ -40,7 +40,7 @@ module Ci BuildHooksWorker.perform_async(build.id) ChatNotificationWorker.perform_async(build.id) if build.pipeline.chat? - if build.failed? + if build.failed? && !build.auto_retry_expected? ::Ci::MergeRequests::AddTodoWhenBuildFailsWorker.perform_async(build.id) end diff --git a/app/workers/ci/external_pull_requests/create_pipeline_worker.rb b/app/workers/ci/external_pull_requests/create_pipeline_worker.rb index 211ea1f2990..334ff099ea2 100644 --- a/app/workers/ci/external_pull_requests/create_pipeline_worker.rb +++ b/app/workers/ci/external_pull_requests/create_pipeline_worker.rb @@ -7,7 +7,7 @@ module Ci data_consistency :always queue_namespace :pipeline_creation - feature_category :pipeline_authoring + feature_category :continuous_integration urgency :high worker_resource_boundary :cpu diff --git a/app/workers/ci/job_artifacts/expire_project_build_artifacts_worker.rb b/app/workers/ci/job_artifacts/expire_project_build_artifacts_worker.rb new file mode 100644 index 00000000000..299b9bbe3d3 --- /dev/null +++ b/app/workers/ci/job_artifacts/expire_project_build_artifacts_worker.rb @@ -0,0 +1,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 |