Laravel options on event listener aren't being used such as tries and failed #46718
Unanswered
sts-ryan-holton
asked this question in
Q&A
Replies: 1 comment
-
bump |
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.
-
I'm working in a Laravel 10 project and have an event/listener set up. My event, called
UptimeHourlySummaryStatCreation
is dispatched via one of my Laravel jobs. Traditionally, with a Laravel job, if I set thefailed
method in the code then rather than the job going intofailed_jobs
table it goes into the method.My event listener isn't preferring this despite it being set, in addition, I've set the maximum number of
tries
on my listener to 1, but in the database I see it re-attempting 3 times before it fails, what's going on here?Am I missing something obvious that's stopping both
tries
andfailed
from being used?Here's my event:
Here's my listener:
If it's of use, here's my config for my queues:
Beta Was this translation helpful? Give feedback.
All reactions