Skip to content

Commit 6da5966

Browse files
committed
Merge pull request #1 from johannessteu/master
BUGFIX: Don't skip a index job if a node can't be processed
2 parents 5d1baa4 + 3867572 commit 6da5966

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/IndexingJob.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,18 @@ public function execute(QueueInterface $queue, Message $message) {
9595
$nodeData = $this->nodeDataRepository->findByIdentifier($node['nodeIdentifier']);
9696
$context = $this->contextFactory->create([
9797
'workspaceName' => $this->workspaceName,
98+
'invisibleContentShown' => true,
99+
'inaccessibleContentShown' => false,
98100
'dimensions' => $node['dimensions']
99101
]);
100102
$currentNode = $this->nodeFactory->createFromNodeData($nodeData, $context);
103+
104+
// Skip this iteration if the node can not be fetched from the current context
101105
if (!$currentNode instanceof NodeInterface) {
102-
return TRUE;
106+
$this->logger->log(sprintf('Node with identifier %s could not be processed', $node['nodeIdentifier']));
107+
continue;
103108
}
109+
104110
$this->nodeIndexer->setIndexNamePostfix($this->indexPostfix);
105111
$this->logger->log(sprintf('Process indexing job for %s', $currentNode));
106112
$this->nodeIndexer->indexNode($currentNode);

0 commit comments

Comments
 (0)