How to listen to io.quarkus.scheduler.SuccessfulExecution and io.quarkus.scheduler.FailedExecution #38960
-
I have a class as below where I would like to listen to successful and failed scheduled execution . However this does not work. Am I doing anything wrong ?
The methods are never fired. Is this a supported feature ? How do I listen to these events ? Also please do note that I do have methods annotated with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Beta Was this translation helpful? Give feedback.
-
Those observers look fine but the important thing is that the events are only fired for |
Beta Was this translation helpful? Give feedback.
@manovotn , @mkouba , I found the culprit to be a very long
Thread.sleep()
in the scheduled method which was preventing the method from finishing execution and hence was not firing events.I discovered this when I was trying to create a reproducer project for you.
Apologies and thanks.