Laravel 队列 horizon 超时问题
本地环境#
一开始使用 phpstudy
环境,直接执行 php artisan queue:work
命令,单个队列没有超时问题,即使单个队列耗时 30 分钟。
后来为了安装 horizon
面板,所以将项目移植到了 laradock
环境下。然后使用 php artisan horizon
命令执行队列,但我这边经过测试,单个任务执行时间最多为 1 分钟,然后队列就会被终止,因为我这边的单个队列执行可能有些会超过 30 分钟,所以想了解一下如何更改 horizon
的单个队列超时时间。
我这边试着更改 horizon
下的配置文件,更改如下,但好像不生效
/*
|--------------------------------------------------------------------------
| Queue Wait Time Thresholds
|--------------------------------------------------------------------------
|
| This option allows you to configure when the LongWaitDetected event
| will be fired. Every connection / queue combination may have its
| own, unique threshold (in seconds) before this event is fired.
|
*/
'waits' => [
'redis:default' => 100,
],
麻烦知道的大佬们,告诉一下我这个小菜鸡!谢谢
推荐文章: