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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/ci/schedule_unlock_pipelines_in_queue_cron_worker.rb')
-rw-r--r--app/workers/ci/schedule_unlock_pipelines_in_queue_cron_worker.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/workers/ci/schedule_unlock_pipelines_in_queue_cron_worker.rb b/app/workers/ci/schedule_unlock_pipelines_in_queue_cron_worker.rb
new file mode 100644
index 00000000000..1a593326120
--- /dev/null
+++ b/app/workers/ci/schedule_unlock_pipelines_in_queue_cron_worker.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+module Ci
+ class ScheduleUnlockPipelinesInQueueCronWorker
+ include ApplicationWorker
+
+ data_consistency :always # rubocop:disable SidekiqLoadBalancing/WorkerDataConsistency
+
+ # rubocop:disable Scalability/CronWorkerContext
+ # This worker does not perform work scoped to a context
+ include CronjobQueue
+ # rubocop:enable Scalability/CronWorkerContext
+
+ feature_category :build_artifacts
+ idempotent!
+
+ def perform(...)
+ Ci::UnlockPipelinesInQueueWorker.perform_with_capacity(...)
+ end
+ end
+end