Set default process timeouts to null

This commit sets the default timeout and idleTimeout for the execution process in ExecutionUnitRunner to null when there are no specific timeouts provided by the execution policy. This change was made to avoid unexpected timeouts when no specific values are set in the execution policy.
This commit is contained in:
Netkas 2023-10-24 16:07:05 -04:00
parent 4f7aa7a859
commit 27baeca112
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
2 changed files with 9 additions and 0 deletions

View file

@ -18,6 +18,7 @@ This update introduces minor bug fixes.
- Updated file tracking in Runtime class
- Fixed division by zero in ConsoleProgressBar
- Fixed issue where progress bar is displayed in VERBOSE mode
- Set default process timeouts to null
## [2.0.3] - 2023-10-17

View file

@ -76,11 +76,19 @@
{
$process->setTimeout($unit->getExecutionPolicy()->getExecute()->getTimeout());
}
else
{
$process->setTimeout(null);
}
if($unit->getExecutionPolicy()->getExecute()->getIdleTimeout() !== null)
{
$process->setIdleTimeout($unit->getExecutionPolicy()->getExecute()->getIdleTimeout());
}
else
{
$process->setIdleTimeout(null);
}
return $process;
}