阅读目录
常用
- 常用
- 运行队列
- queue:work 与 queue:listen 区别
-
- queue:work 所有参数说明
- 执行队列 php artisan queue:work 没反应
- 设置数据库队列表名
- Redis集群配置
-
- database.php
- env('REDIS_CLUSTERS')
- Windows 终端命令问题
指定队列名称,比如:
php artisan queue:work --queue=job1
php artisan queue:work --queue=job1,job2,job3 --tries=1
运行队列
# 运行队列处理程序
php artisan queue:work
# 运行队列处理程序
php artisan queue:listen
# 指定任务处理器使用哪个连接,连接名在 config/queue.p