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/issue_rebalancing_worker.rb')
-rw-r--r--app/workers/issue_rebalancing_worker.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/workers/issue_rebalancing_worker.rb b/app/workers/issue_rebalancing_worker.rb
index a9ad66198f3..9eac451f107 100644
--- a/app/workers/issue_rebalancing_worker.rb
+++ b/app/workers/issue_rebalancing_worker.rb
@@ -3,14 +3,22 @@
class IssueRebalancingWorker
include ApplicationWorker
+ sidekiq_options retry: 3
+
idempotent!
urgency :low
feature_category :issue_tracking
+ tags :exclude_from_kubernetes
def perform(ignore = nil, project_id = nil)
return if project_id.nil?
project = Project.find(project_id)
+
+ # Temporary disable reabalancing for performance reasons
+ # For more information check https://gitlab.com/gitlab-com/gl-infra/production/-/issues/4321
+ return if project.root_namespace&.issue_repositioning_disabled?
+
# All issues are equivalent as far as we are concerned
issue = project.issues.take # rubocop: disable CodeReuse/ActiveRecord