- 🇧🇪Belgium dieterholvoet Brussels
I'm running into the same issue, but when deleting a bunch of translation jobs in an own update hook. The problem is that Drupal\tmgmt\Entity\Job::postDelete() loads all job items at once in order to delete them, but if this was a long-running job with a lot of job items memory issues can arise even after deleting only one job.
I propose loading and deleting the job items in chunks.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.3 & MySQL 8last update
over 1 year ago Not currently mergeable. - @dieterholvoet opened merge request.
- last update
over 1 year ago 117 pass - Status changed to Needs review
over 1 year ago 8:14am 7 June 2023 - Status changed to Needs work
over 1 year ago 9:22am 7 June 2023 - 🇪🇸Spain carlosgm91 Alicante
I had the same issue and finally i have used the same setting 'job_items_cron_limit' to use it also for the finished items, in case that the user has not enabled this setting, the limit will be 50 by default.
Hope this will be heplful.