Currently, we use the @Scheduled
annotation from quarkus-scheduler
to periodically execute a method:
@Scheduled(every = "10s")
void sync() {
...
}
I would like to make the interval configurable in application.properties
. Is there a way to inject a configuration property into the value of the every
parameter? E.g. something like @Scheduled(every = "${sync.interval}")
.