added timout variable
This commit is contained in:
parent
87d4c68935
commit
327a6b05dd
@ -6,10 +6,10 @@ use Symfony\Component\Process\Process;
|
||||
|
||||
class Console
|
||||
{
|
||||
public static function run($command, $all_output = false)
|
||||
public static function run($command, $all_output = false, $timeout = 0)
|
||||
{
|
||||
$process = new Process($command, base_path());
|
||||
$process->setTimeout(900); // 15 minutes
|
||||
$process->setTimeout($timeout);
|
||||
|
||||
$process->run();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user