public function run(RunJob $command) { $job = $this->jobRepository->get($command->getJobName()); $job->run($this->jobExecutor, $command); }
public function override(RunJob $command) : JobSettings { return new self($this->eventStreamConfig->override($command->getEventStore(), null, $command->getDelay(), $command->getThrottling()), $this->eventBusConfig->override($command->getEventBus()), $command->getStopOnError() ?? $this->stopOnError); }