コード例 #1
0
ファイル: JobManager.php プロジェクト: pauci/cqrs-job-manager
 public function run(RunJob $command)
 {
     $job = $this->jobRepository->get($command->getJobName());
     $job->run($this->jobExecutor, $command);
 }
コード例 #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);
 }