diff options
author | Nick Thomas <nick@gitlab.com> | 2019-01-09 04:58:44 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-01-09 04:58:44 +0300 |
commit | 74dca275d2f318bddd70c7bd9cecc2c1f5acac73 (patch) | |
tree | aae5831e80ec3599dbc846b91841aad431059aaa /lib | |
parent | b05c06a909caad710f0203b81642916cc45cfc1f (diff) | |
parent | e4875cd2410018f639000118df7b6c2f1d7dd057 (diff) |
Merge branch 'elastic-test-repos-ce' into 'master'
Backport of elastic-test-repos from EE
See merge request gitlab-org/gitlab-ce!24200
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/seeder.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index 84a51773276..8e2f16271eb 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -26,6 +26,19 @@ module Gitlab puts "\nOK".color(:green) end + def self.without_gitaly_timeout + # Remove Gitaly timeout + old_timeout = Gitlab::CurrentSettings.current_application_settings.gitaly_timeout_default + Gitlab::CurrentSettings.current_application_settings.update_columns(gitaly_timeout_default: 0) + # Otherwise we still see the default value when running seed_fu + ApplicationSetting.expire + + yield + ensure + Gitlab::CurrentSettings.current_application_settings.update_columns(gitaly_timeout_default: old_timeout) + ApplicationSetting.expire + end + def self.mute_notifications NotificationService.prepend(MuteNotifications) end |