-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only start Quartz when there are some @Scheduled annotations #4554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
extensions/scheduler/runtime/src/main/java/io/quarkus/scheduler/runtime/QuartzScheduler.java
Outdated
Show resolved
Hide resolved
…en there are some Schedules.
I rebased and force-pushed an adjusted message to try to get that one into 0.25.0. |
@mkouba, Looking at the code, it looks like the The implementation of these APIs, require the scheduler to be started before calling something like |
CI failures are unrelated, merging. |
Thanks @SlyngDK ! |
@jaikiran I've completely forgotten about this one! In theory, we could detect |
Yes, that's a good point.
So I had a look at what prompted this change and it appears to be this enhancement suggestion (a valid one IMO) - #4243. I think if that has to be solved and yet be able to start the scheduler eagerly, perhaps a better way would be to implement a (lazy?) |
@jaikiran Hm, maybe we should reuse the internal thread pool. Pls file a new tracking issue. |
…en there are some Schedules.
Fixes: #4243