mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 16:54:08 +01:00
Merge pull request #147 from mabrahamde/master
Set local process timeout to a higher value
This commit is contained in:
commit
0765536fcf
@ -11,6 +11,8 @@ use Symfony\Component\Process\Process;
|
||||
|
||||
class Local implements ServerInterface
|
||||
{
|
||||
const TIMEOUT = 300;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@ -25,7 +27,10 @@ class Local implements ServerInterface
|
||||
public function run($command)
|
||||
{
|
||||
$process = new Process($command);
|
||||
$process->mustRun();
|
||||
$process
|
||||
->setTimeout(self::TIMEOUT)
|
||||
->setIdleTimeout(self::TIMEOUT)
|
||||
->mustRun();
|
||||
|
||||
return $process->getOutput();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user