As we turn more and more to OOP this makes sense, doesnt it?:)
drupal_cron_run() right now:
$function = $info['worker callback'];
$end = time() + (isset($info['cron']['time']) ? $info['cron']['time'] : 15);
$queue = Drupal::queue($queue_name);
while (time() < $end && ($item = $queue->claimItem())) {
$function($item->data);
$queue->deleteItem($item);
}
Coming from #1972260: Convert aggregator_admin_refresh_feed to a new style controller
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | drupal-queue_callable-1972246-1.patch | 708 bytes | ParisLiakos |
Comments
Comment #1
ParisLiakos commentedlike this?
Comment #2
ParisLiakos commented#1993100: Change hook_queue_info 'worker callback' to be a callable
Comment #2.0
ParisLiakos commentedAdd relevant issue