Replies: 1 comment 2 replies
-
You raise a good point about the potential for issues when the timeout is set higher than the retry delay for queued jobs in Laravel. Here are a few thoughts on how to handle this: Adding a runtime check as you suggested to throw an exception if timeout > retry_after could be helpful to catch configuration mistakes. However, there may be some valid cases for setting a longer timeout, so it probably shouldn't be a hard error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is already a big warning on https://laravel.com/docs/10.x/queues

But would it be feasible to avoid such kind of problems full by safeguarding this and not allowing jobs with
timeout > retry_after
?If this is not the case, nasty-to-debug problems can appear as soon as having more than one worker.
Beta Was this translation helpful? Give feedback.
All reactions