Home > Developer Guide > Hooks > Queue Hooks
hook_civicrm_QueueRun
Summary
Fire hook_civicrm_queueRun_{$runner}.
Description
This event only fires if these conditions are met:
- The
$queuehas been persisted incivicrm_queue. - The
$queuehas arunnerproperty. - The
$queuehas some pending tasks. - The system has a queue-running agent.
Definition
hook_civicrm_QueueRun(CRM_Queue_Queue $queue, array $items, &$outcomes) { : void
Parameters
-
@param CRM_Queue_Queue $queue
-
@param array $items List of claimed items which we may evaluate.
-
@param array $outcomes The outcomes of each task. One of 'ok', 'retry', 'fail'. Keys should match the keys in $items.
Availability
5.51+