Shouldn't ScheduledTaskFailed be dispatched when a scheduled task fails? #46023
Unanswered
mortenscheel
asked this question in
Q&A
Replies: 0 comments
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.
-
The ScheduledTaskFailed event is dispatched from the ScheduleRunCommand's runEvent($event) method:

Which seems perfectly logical, but as far as I can tell, any Exceptions thrown in a scheduled Command, callback or Invokable class gets handled before reaching that catch block.
I assume this is intentional, and I've probably just misunderstood the purpose of the event. In that case, can someone tell me what the event is actually for? What sort of failures will lead to ScheduledTaskFailed being dispatched?
Beta Was this translation helpful? Give feedback.
All reactions