Queue
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\Queue
- Since
- 3.5.0
Queue helper.
View source (opens new window)
# Public Methods
Method | Description |
---|---|
push() | Pushes a job to the main app queue. |
# push()
Pushes a job to the main app queue.
View source (opens new window)
Arguments
$job
(yii\queue\JobInterface (opens new window))$priority
(integer (opens new window), null (opens new window))$delay
(integer (opens new window), null (opens new window))$ttr
(integer (opens new window), null (opens new window))$queue
(yii\queue\Queue (opens new window), null (opens new window)) – The queue to push to
Returns
string (opens new window), null (opens new window) – The new job ID
← ProjectConfig Search →