Change config method & default timeout to null to disable.

This commit is contained in:
James Ayers 2018-10-25 21:59:20 +13:00 committed by Guy Marriott
parent a29eb830f2
commit 36c55361c3
No known key found for this signature in database
GPG Key ID: A80F9ACCB86D3DA7
1 changed files with 2 additions and 5 deletions

View File

@ -98,11 +98,8 @@ class SolrReindexImmediateHandler extends SolrReindexBase
// Execute script via shell
$process = new Process($cmd);
// Set timeout from config. Process default is 60 seconds.
$timeout = Config::inst()->get(static::class, 'process_timeout');
if ($timeout) {
$process->setTimeout($timeout);
}
// Set timeout from config. Process default is 60 seconds
$process->setTimeout($this->config()->get('process_timeout'));
$process->inheritEnvironmentVariables();
$process->run();