Replies: 1 comment
-
We are doing this in the code by creating a new message instead of retrying. Advantages of not relying on the framework. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We recently ran into a real-world deployment scenario that exposed a limitation in the current
queue:retry
command.Our setup:
To mitigate this, we often need to manually recover or debug failed jobs from production by retrying them in a controlled environment (e.g. a v4 worker only).
Currently,
php artisan queue:retry
can re-queue a failed job, but only to its original queue. To work around this, we’ve been manually editing thefailed_jobs
table — changing the queue name before retrying — which is obviously not ideal.A small addition would make this workflow much cleaner:
This would retry the failed job, but re-enqueue it on a different queue (e.g. debug, v4, or manual_recovery) instead of the original one.
Why this is useful:
php artisan queue:work --queue=debug
I’m happy to look into implementation details and submit a PR if there’s interest.
Beta Was this translation helpful? Give feedback.
All reactions