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:
parent
4f7aa7a859
commit
27baeca112
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue