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.
Since hook_cronapi() has been removed, it doesn't seem possible to define jobs dynamically.
This is a needed feature -- for example for Advanced Queue to register its queues with UC.
Comments
Comment #2
BerdirJobs are config entities, you can just create them. We actually do that too for queues optionally, see \Drupal\ultimate_cron\CronJobDiscovery::discoverCronJobs(). We could maybe add an event or so, or you could just decorate that service.
Comment #3
joachim CreditAttribution: joachim commentedAdvanced Queue queues are plugins, so I think we'd need to sync UC job entities in our plugin manager's discovery.
Comment #4
BerdirStandard queues are plugins too. I'm not sure what you are saying/asking exactly? Yes, either you do it while your discovery is running or when ultimate_cron does that by adding a way to allow modules to run some logic too.