Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
i'd like to use a LoopWorker with ultimate_cron, which currently fails with the message:
[warning] Undefined variable $job_id UltimateCronJobDiscovery.php:72
In ConfigEntityStorage.php line 242:
The entity does not have an ID.
Steps to reproduce
1. Enable ultimate_cron
2. Enable the test module
3. Clear the cache
Proposed resolution
1. Create a helper function to create a job_id, use that in both places in UltimateCronJobDiscovery.php
Remaining tasks
User interface changes
none
API changes
none
Data model changes
none
Issue fork loop_workers-3379649
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
stmh CreditAttribution: stmh at Factorial GmbH commentedI discovered another small bug (partial exception message) which I fixed in this MR. Ready to be reviewed.