Permalink
Browse files

Time outs

  • Loading branch information...
1 parent f865764 commit 7f3dbcef0813995529103b5c0cf37e98380b66b1 Carlos Buenosvinos committed Apr 2, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/CarlosIO/Compify/Command/CrushCommand.php
@@ -53,6 +53,8 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
+ set_time_limit(0);
+
$verbose = $input->getOption('verbose');
$path = $input->getArgument('vendor-path');
@@ -89,6 +91,7 @@ private function crushPackages($composer, $path, OutputInterface $output, $verbo
$output->writeln($cmd);
}
$process = new Process($cmd);
+ $process->setTimeout(600);
$process->run();
if (!$process->isSuccessful()) {
throw new \RuntimeException($process->getErrorOutput());
@@ -105,6 +108,7 @@ private function crushPackages($composer, $path, OutputInterface $output, $verbo
$output->writeln('<comment>' . $cmd . '</comment>');
}
$process = new Process($cmd);
+ $process->setTimeout(600);
$process->run();
if (!$process->isSuccessful()) {
throw new \RuntimeException($process->getErrorOutput());

0 comments on commit 7f3dbce

Please sign in to comment.