Expose Quartz JobDataMap
to persist data between runs when using @Scheduled
#26062
Labels
JobDataMap
to persist data between runs when using @Scheduled
#26062
Description
Quartz provides the so called
JobDataMap
which you can add mappings to that are persisted so that the next execution can read the previously persisted data. It is available viaJobExecutionContext
, but that context is not exposed when using@Scheduled
(non-programmatic, annotation-driven approach).Furthermore, the
InvokerJob
that is registered when using@Scheduled
is neither aStatefulJob
nor is it annotated with@PersistJobDataAfterExecution
, so data won't be persisted.The goal is to extend quarkus-quartz to opt into persitence and expose the context/map, with the annotation-driven approach.
Implementation ideas
Some ideas were discussed in #25987.
The text was updated successfully, but these errors were encountered: