diff options
author | Nick Thomas <nick@gitlab.com> | 2017-11-21 17:13:21 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-11-21 17:32:37 +0000 |
commit | afd5911557051c4dae652b386c7a91f746ff18a5 (patch) | |
tree | 4b6e6e866fb2d15c095fc55c100d5a2a23d88452 /lib/gitlab | |
parent | 4ebe69600fd7ae9da6fb419d76dd5267d9c3b8ca (diff) | |
download | gitlab-ce-afd5911557051c4dae652b386c7a91f746ff18a5.tar.gz |
Set the default gitlab-shell timeout to 3 hours
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/shell.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb index dc0184e4ad9..996d213fdb4 100644 --- a/lib/gitlab/shell.rb +++ b/lib/gitlab/shell.rb @@ -101,8 +101,7 @@ module Gitlab # # Gitaly migration: https://gitlab.com/gitlab-org/gitaly/issues/387 def import_repository(storage, name, url) - # Timeout should be less than 900 ideally, to prevent the memory killer - # to silently kill the process without knowing we are timing out here. + # The timeout ensures the subprocess won't hang forever cmd = [gitlab_shell_projects_path, 'import-project', storage, "#{name}.git", url, "#{Gitlab.config.gitlab_shell.git_timeout}"] gitlab_shell_fast_execute_raise_error(cmd) |