kgiedrius / laravel-random-job-database-queue-driver
修改过的数据库队列驱动,以随机顺序处理推送的工作任务
1.8
2016-08-19 22:19 UTC
Requires
- php: >=5.5.0
- illuminate/console: 5.0.x|5.1.x|5.2.x
- illuminate/support: 5.0.x|5.1.x|5.2.x
- symfony/process: ~2.6|~3.0
This package is not auto-updated.
Last update: 2024-09-26 19:01:33 UTC
README
与数据库队列驱动类似,但以随机顺序处理任务。
安装
使用Composer要求此包的最新版本
composer require KGiedrius/laravel-random-job-database-queue-driver:"1.x"
将服务提供者添加到config/app.php文件中的providers数组中
KGiedrius\Queue\DbRandServiceProvider::class,
您需要创建队列迁移表并运行它。
$ php artisan queue:table
$ php artisan migrate
在config/queue.php。
'default' => 'DbRand',
'connections' => array(
'DbRand' => array(
'driver' => 'DbRand',
'table' => 'jobs',
'queue' => 'default',
'expire' => 60,
),
...
}