Skip to content

Commit

Permalink
Change config method & default timeout to null to disable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leapfrognz authored and ScopeyNZ committed May 9, 2019
1 parent a29eb83 commit 36c5536
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Solr/Reindex/Handlers/SolrReindexImmediateHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ protected function processGroup(
// 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();
Expand Down

0 comments on commit 36c5536

Please sign in to comment.