summaryrefslogtreecommitdiff
path: root/lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb')
-rw-r--r--lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb b/lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb
index 082d267442c..71f055ce7e9 100644
--- a/lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb
+++ b/lib/gitlab/seeders/ci/runner/runner_fleet_seeder.rb
@@ -66,14 +66,18 @@ module Gitlab
plan_limits = Plan.default.actual_limits
if plan_limits.ci_registered_group_runners < @runner_count
- logger.error('The plan limits for group runners is set to ' \
+ warn 'The plan limits for group runners is set to ' \
"#{plan_limits.ci_registered_group_runners} runners. " \
- 'You should raise the plan limits to avoid errors during runner creation')
+ 'You should raise the plan limits to avoid errors during runner creation by running ' \
+ 'the following command in the Rails console:'
+ warn "Plan.default.actual_limits.update!(ci_registered_group_runners: #{@runner_count})"
return false
elsif plan_limits.ci_registered_project_runners < @runner_count
- logger.error('The plan limits for project runners is set to ' \
+ warn 'The plan limits for project runners is set to ' \
"#{plan_limits.ci_registered_project_runners} runners. " \
- 'You should raise the plan limits to avoid errors during runner creation')
+ 'You should raise the plan limits to avoid errors during runner creation by running ' \
+ 'the following command in the Rails console:'
+ warn "Plan.default.actual_limits.update!(ci_registered_project_runners: #{@runner_count})"
return false
end