Skip to content

Commit

Permalink
fix(jobs): increase retry delay to be greater than timeout
Browse files Browse the repository at this point in the history
> The --timeout value should always be at least several seconds shorter than your retry_after configuration value. This will ensure that a worker processing a given job is always killed before the job is retried. If your --timeout option is longer than your retry_after configuration value, your jobs may be processed twice.

https://laravel.com/docs/6.x/queues#job-expirations-and-timeouts
  • Loading branch information
warlof committed Mar 5, 2021
1 parent ebe7d8a commit 2fe5758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'retry_after' => 960, // 16 minutes (must be greater than timeout)
'block_for' => null,
],

Expand Down

0 comments on commit 2fe5758

Please sign in to comment.