think-queue 问题

think-queue队列执行的过程中出现 'queue:work' 'redis' '--once' '--queue=default' '--delay=0' '--memory=128' '--sleep=3' '--tries=0'" exceeded the timeout of 60 seconds. 此报错并不断重试的问题。

经排查,队列任务执行时间超过60s,故出现此问题。

解决办法:supervisor配置文件中增加timeout选项,默认为60。

/www/server/php/73/bin/php think queue:listen --queue default --memory 512 --timeout 3600 

 

posted @ 2022-09-28 10:04  雪后西溏  阅读(794)  评论(0编辑  收藏  举报