protected function execute(InputInterface $input, OutputInterface $output) { ShellCommand::fromCommandLine($input->getArgument('shell_command'))->asJobOf($this->recruiter)->inBackground()->execute(); }
/** * @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++; }