Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     ShellCommand::fromCommandLine($input->getArgument('shell_command'))->asJobOf($this->recruiter)->inBackground()->execute();
 }
Example #2
0
 /**
  * @param integer $duration  milliseconds
  */
 protected function enqueueJob($duration = 10, $tag = 'generic')
 {
     $workable = ShellCommand::fromCommandLine("sleep " . $duration / 1000);
     $workable->asJobOf($this->recruiter)->inGroup($tag)->inBackground()->execute();
     $this->jobs++;
 }