You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same queue is processed with cron without out of memory errors, the queue has around 1000 items.
Workaround
I implemented processing in batches, something like:
$site_alias = $this->siteAliasManager()->getSelf();
$process = $this->processManager()->drush($site_alias, QueueCommands::RUN, ['some_queue_name']);
do {
// Enqueue a batch of items.
$this->someEnqueuer->enqueueBatch($sandbox);
// Process queue.
$process->run($process->showRealtime()->hideStdout());
}
} while (!$this->someEnqueuer->someIsFinishedMethod());
The text was updated successfully, but these errors were encountered:
Describe the bug
This happens when invoking a Drush process from a drush command:
The same queue is processed with cron without out of memory errors, the queue has around 1000 items.
Workaround
I implemented processing in batches, something like:
The text was updated successfully, but these errors were encountered: