Laravel 8 Queue Connection not configured although my queue working fine, but generate log in laravel.log file in every second

huangapple go评论128阅读模式
英文:

Laravel 8 Queue Connection not configured although my queue working fine, but generate log in laravel.log file in every second

问题

Laravel 8 队列运行正常,但每秒在 storage/laravel.log 文件中生成的日志是:[database--queue=default] 队列连接未配置。 {"exception":"[object] (InvalidArgumentException(code: 0): [database--queue=default] 队列连接未配置。

英文:

Laravel 8 queue working fine, but every second generate log in storage/laravel.log file is : The [database--queue=default] queue connection has not been configured. {"exception":"[object]
(InvalidArgumentException(code: 0): The [database--queue=default] queue connection has not been configured

答案1

得分: 1

确保你在 configs/queue.php 文件中正确配置你的驱动程序,例如:

'connections' => [
    'database' => [
        'driver' => 'database',
        'table' => 'jobs',
        'queue' => 'default',
        'retry_after' => 90,
    ],
]
英文:

Make sure you configure your driver properly in the configs/queue.php, for example:

  'connections' => [
        'database' => [
            'driver'      => 'database',
            'table'       => 'jobs',
            'queue'       => 'default',
            'retry_after' => 90,
        ],
   ]

huangapple
  • 本文由 发表于 2023年3月23日 12:01:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/75819160.html
匿名

发表评论

匿名网友

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

确定