kingshark
4 months ago
1016
6
Laravel

Why Horizon save failed jobs to Redis?

Posted 4 months ago by kingshark

Horizon version: v2.2.2

Issues:

I set in config/queue.php to use MYSQL to store failed jobs:

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

in .env DB_CONNECTION=mysql.

but horizon still save all faield jobs in redis instead. and failed_jobs table has no records.

Why is it working like this? How can I setup to let failed jobs to be stored in db?

Please sign in or create an account to participate in this conversation.