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.
This project is not covered by Drupal’s security advisory policy.
Provides a PriorityQueue class that can be used to process higher priority items before lower priority items.
Usage:
// Ensure the PriorityQueue class is used for the 'test_queue' class.
variable_set('queue_class_test_queue', 'PriorityQueue');
$queue = DrupalQueue::get('test_queue');
$queue->createItem('LAST', -10);
$queue->createItem('FIRST', 10);
$queue->createItem('MIDDLE', 0);
// The items will be processed with 'FIRST' being first since it has the highest priority of 10, and 'LAST' being last since it has the lowest priority of -10.
Supporting organizations:
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Developer Tools
- 1 site reports using this module
- Created by Dave Reid on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.