Merge pull request #234 from dnadesign/pulls/process-timeout

Update Process timeout via Config
This commit is contained in:
Dylan Wagstaff 2018-10-26 10:49:24 +13:00 committed by GitHub
commit d1e37f28ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();