Skip to content

Commit

Permalink
feat Execution: The execution of the tools is executed without timeou…
Browse files Browse the repository at this point in the history
…t. Previously there was a 5min timeout
  • Loading branch information
Wtyd committed May 9, 2024
1 parent 64977b5 commit a6ecb01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Tools/Process/Execution/ProcessExecutionAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class ProcessExecutionAbstract
/** @var \Wtyd\GitHooks\Utils\Printer */
protected $printer;

/** @var array<\Wtyd\GitHooks\Tools\Execution\Process> */
/** @var array<\Wtyd\GitHooks\Tools\Process\Process> */
protected $processes = [];

/** @var array<\Wtyd\GitHooks\Tools\Tool\ToolAbstract> */
Expand Down Expand Up @@ -96,7 +96,8 @@ protected function createProcesses(): void
{
foreach ($this->tools as $key => $tool) {
$this->processes[$key] = new Process(explode(' ', $tool->prepareCommand()));
$this->processes[$key]->setTimeout(300); // 5 minutes
$this->processes[$key]->setTimeout(null); // without timeout
// TODO customize timeout
}
}

Expand Down

0 comments on commit a6ecb01

Please sign in to comment.