laravel队列设置失败

laravel会把执行失败的job放到failed_job表里,payload存储了job的信息,我们需要还原job里的对象分析失败原因。

队列可能会失败

我们可以在config/queue.php中设置

```
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
],
```

`https://blog.csdn.net/weixin_35475608/article/details/114319365`

`https://www.jianshu.com/p/876aca355a79`

`https://www.cnblogs.com/polax/p/13406143.html`

    A+
发布日期:2023年05月20日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: