Skip to content

Commit

Permalink
Move promotion ids metadata entry
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jul 8, 2021
1 parent 5c4606e commit 22f4f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Command/ProcessPromotionsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 22f4f6b

Please sign in to comment.