Skip to content
Snippets Groups Projects
Commit 8b44b9c0 authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Issue #3480481 by claudiu.cristea: Drush command fails on content with multiple triples

parent f7af5eb3
No related branches found
No related tags found
1 merge request!27Lower 10 times the batch size
Pipeline #309093 passed with warnings
...@@ -89,7 +89,7 @@ class RdfSyncCommands extends DrushCommands { ...@@ -89,7 +89,7 @@ class RdfSyncCommands extends DrushCommands {
$ids = array_values($query->execute()); $ids = array_values($query->execute());
$batchBuilder = (new BatchBuilder())->addOperation([static::class, 'init'], [count($ids)]); $batchBuilder = (new BatchBuilder())->addOperation([static::class, 'init'], [count($ids)]);
foreach (array_chunk($ids, 50) as $queuedIds) { foreach (array_chunk($ids, 5) as $queuedIds) {
$batchBuilder->addOperation([static::class, 'synchronizeBatch'], [$entityTypeId, $queuedIds]); $batchBuilder->addOperation([static::class, 'synchronizeBatch'], [$entityTypeId, $queuedIds]);
} }
batch_set($batchBuilder->toArray()); batch_set($batchBuilder->toArray());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment