-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Run quartz-persistance
independently
#115
Comments
I'm not sure to have got your point. Anyway, if you need to run Quartz with a DB to persist the scheduler config, you don't need to run liquibase and switch |
I did try the same to bootstrap a newly created database with the scheduler configs. I used the docker-compose file in the I think why it doesn't work is because When i set this property to Is there anything that i might have missed ? |
You've got a bug. |
Hi @midhunadarvin, I've just fixed. I've released the ver 4.0.9 with this fix and your already merged contributions. |
Thanks @fabioformosa . I checked it and confirm that it is working. Closing this issue. |
Hi,
I had a requirement of setting up quartz with persistence in a postgres database. With the quartz-manager project if I have to initialize the database, I could set the
spring.quartz.initialize-schema
fromnever
toalways
This will help initialize the database, but it will drop existing tables and initialize on every startup of the application. So in order to workaround that, the 1st deployment should be with the property
spring.quartz.initialize-schema=always
and the 2nd deployment should be with the propertyspring.quartz.initialize-schema=never
This will work but doesn't seem clean due to dependency on multiple deployment.
I tried to setup the
quartz-manager-starter-persistence
project with configuration to run it independently and initialize the database without the need for spring boot project to start.In pom.xml of
quartz-manager-starter-persistence
liquibase.properties
Finally I run the command to migrate / initialize the database independently of spring boot :
My question is whether there are any other better options to initialize the database only once ? Should this be incorporated into the
quartz-manager-starter-persistence
project as an alternate option ?The text was updated successfully, but these errors were encountered: