Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot rename failed_jobs table #51002

Closed
MichaelRushton opened this issue Apr 10, 2024 · 1 comment
Closed

Cannot rename failed_jobs table #51002

MichaelRushton opened this issue Apr 10, 2024 · 1 comment

Comments

@MichaelRushton
Copy link

Laravel Version

11

PHP Version

8.3

Database Driver & Version

No response

Description

In config/queue.php I have renamed the failed_jobs table to 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`...

Steps To Reproduce

Update failed.table in config/queue.php. Run php artisan queue:work. Trigger a queue that will fail to send.

@MichaelRushton
Copy link
Author

My mistake. Forgot to cancel and re-run php artisan queue:work after changing the config.

@MichaelRushton MichaelRushton closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant