Closed MichaelRushton closed 5 months ago
11
8.3
No response
In config/queue.php I have renamed the failed_jobs table to failed_queues:
config/queue.php
failed_jobs
failed_queues
"failed" => [ "driver" => env("QUEUE_FAILED_DRIVER", "database-uuids"), "database" => env("DB_CONNECTION", "sqlite"), "table" => "failed_queues", ],
But when a queue fails it is still trying to insert into the failed_jobs table:
[2024-04-10 14:03:44] local.ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.failed_jobs' doesn't exist (Connection: mariadb, SQL: insert into `failed_jobs`...
Update failed.table in config/queue.php. Run php artisan queue:work. Trigger a queue that will fail to send.
failed.table
php artisan queue:work
My mistake. Forgot to cancel and re-run php artisan queue:work after changing the config.
Laravel Version
11
PHP Version
8.3
Database Driver & Version
No response
Description
In
config/queue.php
I have renamed thefailed_jobs
table tofailed_queues
:But when a queue fails it is still trying to insert into the
failed_jobs
table:Steps To Reproduce
Update
failed.table
inconfig/queue.php
. Runphp artisan queue:work
. Trigger a queue that will fail to send.