debian-mirror-gitlab/app/workers/git_garbage_collect_worker.rb

20 lines
720 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
# frozen_string_literal: true
2021-03-11 19:13:27 +05:30
# According to our docs, we can only remove workers on major releases
# https://docs.gitlab.com/ee/development/sidekiq_style_guide.html#removing-workers.
#
# We need to still maintain this until 14.0 but with the current functionality.
#
# In https://gitlab.com/gitlab-org/gitlab/-/issues/299290 we track that removal.
2020-04-08 14:13:33 +05:30
class GitGarbageCollectWorker # rubocop:disable Scalability/IdempotentWorker
2018-03-17 18:26:18 +05:30
include ApplicationWorker
2016-08-24 12:49:21 +05:30
2016-11-03 12:29:30 +05:30
sidekiq_options retry: false
2019-12-21 20:55:43 +05:30
feature_category :gitaly
2020-06-23 00:09:42 +05:30
loggable_arguments 1, 2, 3
2016-08-24 12:49:21 +05:30
2017-08-17 22:00:37 +05:30
def perform(project_id, task = :gc, lease_key = nil, lease_uuid = nil)
2021-03-11 19:13:27 +05:30
::Projects::GitGarbageCollectWorker.new.perform(project_id, task, lease_key, lease_uuid)
2017-08-17 22:00:37 +05:30
end
2016-08-24 12:49:21 +05:30
end