mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Change config method & default timeout to null to disable.
This commit is contained in:
parent
a29eb830f2
commit
36c55361c3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user