Skip to content

Commit

Permalink
create process with command line instead of ProcessBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
anorgan committed Jun 17, 2017
1 parent 423970e commit 8773947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Command/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ private function startJob(Job $job)
foreach ($job->getArgs() as $arg) {
$pb->add($arg);
}
$proc = $pb->getProcess();

$proc = new Process($pb->getProcess()->getCommandLine());
$proc->start();
$this->output->writeln(sprintf('Started %s.', $job));

Expand Down Expand Up @@ -410,7 +411,7 @@ private function cleanUpStaleJobs($workerName)
;

// We use a separate process to clean up.
$proc = $pb->getProcess();
$proc = new Process($pb->getProcess()->getCommandLine());
if (0 !== $proc->run()) {
$ex = new ProcessFailedException($proc);

Expand Down

0 comments on commit 8773947

Please sign in to comment.