gpt4 book ai didi

laravel - "how fix laravel job has been attempted too many times or run too long'“

转载 作者:行者123 更新时间:2023-12-04 18:25:38 27 4
gpt4 key购买 nike

我使用队列发送短信。工作得很好。接下来,Ubuntu 服务器出现的问题是我必须重新安装 supervisor。重置后出现此问题。

production.ERROR: Illuminate\Queue\MaxAttemptsExceededException: A queued job has been attempted too many times. The job may have previously time timed out. in /home/.../.../vendor/laravel/framework/src/Illuminate/Queue/Worker.php:385

最佳答案

你需要编辑 config/queue.php


'retry_after' => 1800, // This parameter is responsible for timeout

确保 retry_after 值大于作业运行所需的时间,队列文档中已经提到了这一点。

关于laravel - "how fix laravel job has been attempted too many times or run too long'“,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56388796/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com