Esempio n. 1
0
 public function run(RunJob $command)
 {
     $job = $this->jobRepository->get($command->getJobName());
     $job->run($this->jobExecutor, $command);
 }
Esempio n. 2
0
 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);
 }