- update application.properties
quarkus.scheduler.enabled=false
run quarkus dev
run curl http://localhost:8080/cronjob
, curl http://localhost:8080/count
, it works well.
- update application.properties
quarkus.scheduler.enabled=true
wait for a while, errors happen and DB connection will not work anymore.
Notes:
- The problem is fixed by switching to 2.16.2.Final.
- It does not support background job yet.