diff --git a/lib/Command/Classify.php b/lib/Command/Classify.php index 8d1ca483..5ee62625 100644 --- a/lib/Command/Classify.php +++ b/lib/Command/Classify.php @@ -111,6 +111,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int foreach ($this->storageService->getFilesInMount($mount['storage_id'], $mount['override_root'], $models, $lastFileId) as $file) { $i++; // if retry flag is set, skip tagged files + $lastFileId = $file['fileid']; if ($input->getOption('retry')) { $fileTags = $this->tagManager->getTagsForFiles([$lastFileId]); // check if processed tag is already in the tags @@ -118,7 +119,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int continue; } } - $lastFileId = $file['fileid']; $queueFile = new QueueFile(); $queueFile->setStorageId($mount['storage_id']); $queueFile->setRootId($mount['root_id']);