Skip to content

Commit 65e422f

Browse files
committed
TASK: Output currently processed workspace
1 parent d172650 commit 65e422f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/Command/NodeIndexQueueCommandController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ public function buildCommand($workspace = null)
8787

8888
if ($workspace === null) {
8989
foreach ($this->workspaceRepository->findAll() as $workspace) {
90-
$this->indexWorkspace($workspace->getName(), $indexPostfix);
90+
$workspace = $workspace->getName();
91+
$this->outputLine();
92+
$this->outputLine(sprintf('<info>++</info> Indexing %s workspace', $workspace));
93+
$this->indexWorkspace($workspace, $indexPostfix);
9194
}
9295
} else {
96+
$this->outputLine();
97+
$this->outputLine(sprintf('<info>++</info> Indexing only %s workspace', $workspace));
9398
$this->indexWorkspace($workspace, $indexPostfix);
9499
}
95100
$updateAliasJob = new UpdateAliasJob($indexPostfix);
@@ -130,6 +135,7 @@ protected function indexWorkspace($workspaceName, $indexPostfix)
130135
$offset += $batchSize;
131136
$this->persistenceManager->clearState();
132137
}
138+
$this->outputLine();
133139
}
134140

135141
/**

0 commit comments

Comments
 (0)