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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-29 09:08:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-29 09:08:52 +0300
commit31c56eec409257c58791063b1d26c269adf51787 (patch)
tree1328b21e994e06e7a604a2d33800e4f362442f1f /sidekiq_cluster
parentf26311e23466947e3b57914341866aa440e67267 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'sidekiq_cluster')
-rw-r--r--sidekiq_cluster/cli.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/sidekiq_cluster/cli.rb b/sidekiq_cluster/cli.rb
index 59f39003429..c0940370d3b 100644
--- a/sidekiq_cluster/cli.rb
+++ b/sidekiq_cluster/cli.rb
@@ -100,6 +100,11 @@ module Gitlab
unless @dryrun
@logger.info("Starting cluster with #{queue_groups.length} processes")
+
+ # Make sure we reset the metrics directory prior to:
+ # - starting a metrics server process
+ # - starting new workers
+ ::Prometheus::CleanupMultiprocDirService.new(@metrics_dir).execute
end
start_and_supervise_workers(queue_groups)
@@ -118,11 +123,6 @@ module Gitlab
return if @dryrun
- # Make sure we reset the metrics directory prior to:
- # - starting a metrics server process
- # - starting new workers
- ::Prometheus::CleanupMultiprocDirService.new(@metrics_dir).execute
-
ProcessManagement.write_pid(@pid) if @pid
supervisor = SidekiqProcessSupervisor.instance(