diff --git a/src/Command/ProcessPromotionsCommand.php b/src/Command/ProcessPromotionsCommand.php index 6696623..b1cd72e 100644 --- a/src/Command/ProcessPromotionsCommand.php +++ b/src/Command/ProcessPromotionsCommand.php @@ -118,6 +118,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $job->setType(self::JOB_TYPE); $job->setName('Sylius Catalog Promotion plugin: Process promotions'); $job->setTtl($this->jobTtl); + $job->setMetadataEntry('promotions', $promotionIds); $this->jobManager->start($job, 3); @@ -184,8 +185,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->channelPricingRepository->updatePrices($bulkIdentifier); $this->jobManager->advance($job); - - $job->setMetadataEntry('promotions', $promotionIds); $this->jobManager->finish($job); return 0;