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/batched_git_ref_updates/cleanup_scheduler_worker.rb')
-rw-r--r--app/workers/batched_git_ref_updates/cleanup_scheduler_worker.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/workers/batched_git_ref_updates/cleanup_scheduler_worker.rb b/app/workers/batched_git_ref_updates/cleanup_scheduler_worker.rb
new file mode 100644
index 00000000000..9c50e319be0
--- /dev/null
+++ b/app/workers/batched_git_ref_updates/cleanup_scheduler_worker.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+module BatchedGitRefUpdates
+ class CleanupSchedulerWorker
+ include ApplicationWorker
+ # Ignore RuboCop as the context is added in the service
+ include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
+
+ idempotent!
+ data_consistency :sticky
+
+ feature_category :gitaly
+
+ def perform
+ stats = CleanupSchedulerService.new.execute
+
+ log_extra_metadata_on_done(:stats, stats)
+ end
+ end
+end