laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

Lumen 5.3 config/queue.php retry_after or expire param for database configuration #693

Closed mattallan closed 6 years ago

mattallan commented 6 years ago

Description:

I'm looking to clear up a bit confusion I have with what is the correct param to use in config/queue.php when trying to update the job expiration in the database config

For the database config, the config/queue.php in your framework uses the expire param, but the documentation says to only use the retry_after param (link to docs).

I can't find any docs/information on using the expire param. So i'm not sure if i should be removing the expire and replacing it with retry_after or using expire.

Any assistance in clearing this up is appreciated :)


Here's a snippet of what my config/queue.php looks like.

'connections' => [
        'sync' => [
            'driver' => 'sync',
        ],
        'database' => [
            'driver'      => 'database',
            'table'       => 'jobs',
            'queue'       => 'default',
            'retry_after' => 310,
                        // 'expire'   => 310,
        ],

Steps To Reproduce:

driesvints commented 6 years ago

Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.