diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 09:06:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-01 09:06:47 +0000 |
commit | f7a13c56bf0ed7ff9591bf4cbf9e50487255c4bc (patch) | |
tree | cae9893580133cdd133c8238d0e9b781a1735ec6 /lib | |
parent | 9b8d0d898eb2e1b698c93e468c8a9eb928d75d09 (diff) | |
download | gitlab-ce-f7a13c56bf0ed7ff9591bf4cbf9e50487255c4bc.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitaly_client.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/gitlab/gitaly_client.rb b/lib/gitlab/gitaly_client.rb index 9e3af00e00d..5b47853b9c1 100644 --- a/lib/gitlab/gitaly_client.rb +++ b/lib/gitlab/gitaly_client.rb @@ -383,13 +383,17 @@ module Gitlab end def self.long_timeout - if Sidekiq.server? - 6.hours - else + if web_app_server? default_timeout + else + 6.hours end end + def self.web_app_server? + defined?(::Unicorn) || defined?(::Puma) + end + def self.storage_metadata_file_path(storage) Gitlab::GitalyClient::StorageSettings.allow_disk_access do File.join( |