Skip to content

Quartz may attempt to use the DataSource before migrations have been run #17528

@zhangxb1987

Description

@zhangxb1987

I am trying to use flyway handling the quartz schema initialization, but it seems QuartzAutoConfiguration is always processed ahead of FlywayAutoConfiguration, which will raise the [org.quartz.JobPersistenceException: Couldn't retrieve job: ORA-00942] exception, because the quartz schema is not initialized yet(I am using jdbc as the quartz job store type, spring.quartz.job-store-type=jdbc).

So, am i got something wrong , or maybe should put

@AutoConfigurationAfter(FlywayAutoConfiguration.class) on the QuartzAutoConfiguration ?

THX!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions