Skip to content
Snippets Groups Projects
Unverified Commit e77f46d1 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Remove timeouts for long running requests

parent 1c24eafb
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
---
title: Disable Gitaly timeouts when creating or restoring backups
merge_request: 20810
author:
type: fixed
Loading
Loading
@@ -407,7 +407,7 @@ module Gitlab
 
# The default timeout on all Gitaly calls
def self.default_timeout
return 0 if Sidekiq.server?
return no_timeout if Sidekiq.server?
 
timeout(:gitaly_timeout_default)
end
Loading
Loading
@@ -420,6 +420,10 @@ module Gitlab
timeout(:gitaly_timeout_medium)
end
 
def self.no_timeout
0
end
def self.timeout(timeout_name)
Gitlab::CurrentSettings.current_application_settings[timeout_name]
end
Loading
Loading
Loading
Loading
@@ -202,7 +202,7 @@ module Gitlab
save_path,
:create_bundle,
Gitaly::CreateBundleRequest,
GitalyClient.default_timeout
GitalyClient.no_timeout
)
end
 
Loading
Loading
@@ -220,7 +220,7 @@ module Gitlab
bundle_path,
:create_repository_from_bundle,
Gitaly::CreateRepositoryFromBundleRequest,
GitalyClient.default_timeout
GitalyClient.no_timeout
)
end
 
Loading
Loading
@@ -245,7 +245,7 @@ module Gitlab
:repository_service,
:create_repository_from_snapshot,
request,
timeout: GitalyClient.default_timeout
timeout: GitalyClient.no_timeout
)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment