[Queue] Set retry_after for specific queues or jobs #33661
Unanswered
philipkozeny
asked this question in
Ideas
Replies: 1 comment
-
I have pretty much the same question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there is a global retry_after setting for a queue connection (https://laravel.com/docs/7.x/queues#job-expirations-and-timeouts).
In our case, we have different queues within one connection which span from super quick jobs (like notifications) to jobs that can take up to twelve hours (data generation). Setting the retry_after to the longest-running queue would be problematic for time-sensitive jobs that should be picked up again rather quickly if something happens to the worker. On the other hand having multiple workers starting the same job again since its available again although the process is still running is also not optimal.
It would be great to either be able to
a) assign a specific retry_after for a queue
b) assign a specific retry_after for a job itself when dispatching it
Beta Was this translation helpful? Give feedback.
All reactions