diff --git a/src/Solr/Reindex/Handlers/SolrReindexImmediateHandler.php b/src/Solr/Reindex/Handlers/SolrReindexImmediateHandler.php index db5db3b..a06244d 100644 --- a/src/Solr/Reindex/Handlers/SolrReindexImmediateHandler.php +++ b/src/Solr/Reindex/Handlers/SolrReindexImmediateHandler.php @@ -97,6 +97,10 @@ class SolrReindexImmediateHandler extends SolrReindexBase // Execute script via shell $process = new Process($cmd); + + // Set timeout from config. Process default is 60 seconds + $process->setTimeout($this->config()->get('process_timeout')); + $process->inheritEnvironmentVariables(); $process->run();