schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Get command output in Job dependency #137

Closed anacona16 closed 8 years ago

anacona16 commented 8 years ago

Hi, I have a Job with a dependency, but I need pass the output command of the dependent Job at main Job, the main Job need it.

$job = new Job('a');
$dependentJob = new Job('b');
$dependentJob->addDependency($job);
$em->persist($job);
$em->persist($dependentJob);
$em->flush();

This is posible?

schmittjoh commented 8 years ago

It might be simpler to schedule the second job from within the first one.