Add timeout option for assetic:dump task

This commit is contained in:
Tobias Lode
2017-05-29 10:07:13 +02:00
parent 46684ea649
commit 21bcdf76cc
3 changed files with 79 additions and 2 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ class AsseticDumpTask extends AbstractTask
$command = sprintf('%s assetic:dump --env=%s %s', $options['console'], $options['env'], $options['flags']);
/** @var Process $process */
$process = $this->runtime->runCommand(trim($command));
$process = $this->runtime->runCommand(trim($command), $options['timeout']);
return $process->isSuccessful();
}
@@ -44,7 +44,7 @@ class AsseticDumpTask extends AbstractTask
protected function getOptions()
{
$options = array_merge(
['console' => 'bin/console', 'env' => 'dev', 'flags' => ''],
['console' => 'bin/console', 'env' => 'dev', 'flags' => '', 'timeout' => 120],
$this->runtime->getMergedOption('symfony'),
$this->options
);