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>2019-11-01 12:06:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-01 12:06:47 +0300
commitf7a13c56bf0ed7ff9591bf4cbf9e50487255c4bc (patch)
treecae9893580133cdd133c8238d0e9b781a1735ec6 /lib/gitlab/gitaly_client.rb
parent9b8d0d898eb2e1b698c93e468c8a9eb928d75d09 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/gitaly_client.rb')
-rw-r--r--lib/gitlab/gitaly_client.rb10
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(