'Can I modify a failed Laravel (redis/horizon) job payload before retrying?
Locally, I use the database queue driver, but on production, we use Redis with Horizon.
Recently, I noticed a job failed due to a tiny issue in the payload (a single character). I'd really like to modify the payload and resend it because having the user re-perform the steps to generate the job isn't feasible. If the payload was stored in the database, I could easily accomplish this, but I'm not as familiar with Redis, and I'm wondering if it's something I can do?
Thanks in advance.
Solution 1:[1]
I am having the same problem. But what I found so far is not promising. If you change the payload manually laravel cannot deserialize it. It is safety feature for data injection I guess just like JWT. A key is generated from the content of the payload and when the key is parsed and not equals with the payload it fails.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Voros Peter |
