I need to execute a method in my Quarkus application at a fixed time in a given time zone. I found the "quarkus-scheduler" extension, which provides the "@Scheduled" annotation, but this does not seem to offer any possibility to set the time zone.
Both the Java EE "@Schedule" and the Spring "@Scheduled" annotation have a corresponding parameter, but how can I achieve this in Quarkus?
It's not possible at the moment. Quarkus scheduler is using the default time-zone of the JVM running the app. I've created a new issue to track this feature request: https://github.com/quarkusio/quarkus/issues/25159.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With