Difference is explained in documentation https://laravel.com/docs/5.6/queues#job-expirations-and-timeouts
Difference between "delay" in Forge, and retry_after in queue config?
I am working on some new long running jobs for our app and having some confusion about the difference between the "delay" setting in forge (which appears to add a --delay=X to the queue worker) and the retry_after setting in my queue config file.
My hope is that --delay and retry_after are doing the same thing, and that specifying --delay overrides the configured retry_after. That is the behavior I want right now. I want to avoid setting up a new queue connection just for these specific long-running jobs. I want my job to timeout after 3600 seconds, and per the docs, I need the job to not retry until longer than that, so 3610 seconds. Here is the daemon that is running:
artisan queue:work database --sleep=10 --daemon --quiet --timeout=3600 --delay=3610 --tries=2 --queue=recordings
I just want to make sure that my config will not conflict with that:
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 60
],
Can anyone clarify that for me? Thanks
Please or to participate in this conversation.