Class humhub\modules\queue\Events

Inheritancehumhub\modules\queue\Events » yii\base\BaseObject
Available since version1.3

Events provides callbacks to handle events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onCronRun() Cron call back humhub\modules\queue\Events
onQueueAfterPush() Callback after new jobs in the queue. humhub\modules\queue\Events
onQueueBeforePush() Callback before new jobs in the queue. humhub\modules\queue\Events
onQueueError() Callback for errors while queue execution humhub\modules\queue\Events

Method Details

onCronRun() public static method

Cron call back

public static void onCronRun ( \yii\base\Event $event )
$event \yii\base\Event
onQueueAfterPush() public static method

Callback after new jobs in the queue.

Handles exclusive jobs.

public static void onQueueAfterPush ( \yii\queue\PushEvent $event )
$event \yii\queue\PushEvent
onQueueBeforePush() public static method

Callback before new jobs in the queue.

Handles exclusive jobs.

public static void onQueueBeforePush ( \yii\queue\PushEvent $event )
$event \yii\queue\PushEvent
onQueueError() public static method

Callback for errors while queue execution

public static void onQueueError ( \yii\queue\ExecEvent $event )
$event \yii\queue\ExecEvent