Active
Project:
Parallel queue
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2021 at 07:26 UTC
Updated:
30 Jun 2022 at 13:42 UTC
Jump to comment: Most recent
Getting error when trying to run any queue
An option named "items-limit" already exists.
Install module, run queue list command to get list of queue, pick any queue and run with or without items-limit option.
drush queue:run media_entity_thumbnail --process-limit=2 --items-limit=5
drush queue:run media_entity_thumbnail --process-limit=2
Comments
Comment #2
sharique commentedComment #3
sharique commentedComment #4
khiminrm commentedReceived the same error with and without options.
Also sometimes received
The "--process-limit" option does not exist.Any solution?
Also I've question. It's not clear from the code of the command how each process received it's own set of the queue's items?
Couldn't fully test due errors.
Comment #5
khiminrm commentedWas able to fix the error by making options required:
Tested. And it looks there is another issue I've mentioned in previous comment - the same items are processed with different processes. When I used such options --items-limit=100 --process-limit=2, in most cases only 50 items where processed even if I received two messages in a console:
Also I've received another errors like:
PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /var/www/html/docroot/core/lib/Drupal/Core/Database/StatementWrapper.php:145