Queue can generate an error

Created on 7 September 2024, 4 months ago
Updated 9 September 2024, 3 months ago

Problem/Motivation

Queue can generate an error
Error: Call to a member function getData() on null in /tmgmt_ec_etranslation/src/Plugin/QueueWorker/TranslationQueueWorker.php on line 91

Steps to reproduce

Create job through UI
eTranslation service will call our callback and items will be added to tmgmt_ec_etranslation_translation queue
remove earlier created job but items are still in queue
when I call `ddev drush queue:run tmgmt_ec_etranslation_translation`, system generates an error

Error: Call to a member function getData() on null in /tmgmt_ec_etranslation/src/Plugin/QueueWorker/TranslationQueueWorker.php on line 91

Proposed resolution

Skip if the job does not exist.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇱Poland alorenc Wolsztyn, 🇵🇱

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024