From 46564ca4f8a8062f71408d84d98e6eb6c04d1445 Mon Sep 17 00:00:00 2001 From: fashxp Date: Wed, 17 Apr 2024 14:14:38 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Command/SequentialProcessQueueCommand.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Command/SequentialProcessQueueCommand.php b/src/Command/SequentialProcessQueueCommand.php index 6ed49b7..fada113 100644 --- a/src/Command/SequentialProcessQueueCommand.php +++ b/src/Command/SequentialProcessQueueCommand.php @@ -78,28 +78,28 @@ protected function execute(InputInterface $input, OutputInterface $output) try { $itemIds = $this->queueService->getAllQueueEntryIds(ImportProcessingService::EXECUTION_TYPE_SEQUENTIAL); $itemCount = count($itemIds); - + $output->writeln("Processing {$itemCount} items sequentially\n"); - + $progressBar = new ProgressBar($output, $itemCount); $progressBar->start(); - + foreach ($itemIds as $i => $id) { $this->importProcessingService->processQueueItem($id); $progressBar->advance(); - + // call the garbage collector to avoid too many connections & memory issue if (($i + 1) % 200 === 0) { \Pimcore::collectGarbage(); } } - + $progressBar->finish(); - + $this->release(); //release the lock - + $output->writeln("\n\nProcessed {$itemCount} items."); - + return 0; } catch (\Throwable $t) { $this->release();