Module Description
Get the additional advantage of Queue API of Drupal core.
πΊπ¦ This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and the safety of Europe. This tiny module allows the control execution order of defined queue workers by the Cron handler.
It allows using weight value in QueueWorker annotation.
/** * Process a queue of media items to fetch their thumbnails. * * @QueueWorker( * id = "custom_media_entity_thumbnail", * title = @Translation("Custom thumbnail downloader"), * cron = {"time" = 60}, * weight = -10 * ) */ class CustomThumbnailDownloader extends ThumbnailDownloader {} To override the default weight value, use Queue UI module.
Drupal Core Feature request: #2975011: Implement QueueWorker annotation "weight" key
πΊπ¦ This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and the safety of Europe. This tiny module allows the control execution order of defined queue workers by the Cron handler.
It allows using weight value in QueueWorker annotation.
/** * Process a queue of media items to fetch their thumbnails. * * @QueueWorker( * id = "custom_media_entity_thumbnail", * title = @Translation("Custom thumbnail downloader"), * cron = {"time" = 60}, * weight = -10 * ) */ class CustomThumbnailDownloader extends ThumbnailDownloader {} To override the default weight value, use Queue UI module.
Drupal Core Feature request: #2975011: Implement QueueWorker annotation "weight" key
Module Link
Project Usage
118
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the control execution order of defined queue workers by the Cron handler in Drupal core, allowing the use of weight value in QueueWorker annotation.
Data Name
queue_order