sagacorp/yii2-queue-multi
最新稳定版本:1.0.2
Composer 安装命令:
composer require sagacorp/yii2-queue-multi
包简介
Yii2 Queue driver for multi queue
关键字:
README 文档
README
This extension is a Yii2 Queue driver for multi queue component.
Installation
Install this extension with composer.
Either run
php composer.phar require --prefer-dist sagacorp/yii2-queue-multi
or add the extension to your composer json.
"sagacorp/yii2-queue-multi": "~1.0.0"
Basic Usage
return [ 'components' => [ 'queue' => [ 'class' => \yii\queue\multi\Queue::class, 'queues' => [ \yii\queue\multi\Queue::DEFAULT_QUEUE => [ 'class' => \yii\queue\redis\Queue::class, 'redis' => 'redis' ], ], ], ], ];
The default queue is required, the you can add as many queues as you want.
When pushing a Job to the multi queue, the queue look if the Job implement the QueueAwareJobInterface interface.
Then it push the Job in the right queue.
Isolate mode
In case of isolation mode, the jobs are executed on the multi queue directly.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-15