Use QueueWorker to avoid timeouts when updating large number of references

Created on 15 September 2021, about 3 years ago
Updated 6 June 2023, over 1 year ago

Problem/Motivation

Similar to issue https://www.drupal.org/project/term_reference_change/issues/3142776 🐛 Use Batch API to avoid timeouts when updating large number of references Needs work where memory exhaustion occurs, I found that updating a large number of references can timeout.

Steps to reproduce

  1. Select a term (A) with > 10,000 references
  2. Merge term (A) into another term (B) with > 10,000 references

Proposed resolution

This issue also depends on https://www.drupal.org/project/term_merge/issues/3245994 🐛 Avoid timeout when updating large number of references Needs work

Implement a queue worker to process reference entity updates.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024