Skip to content
Discussion options

You must be logged in to vote

Hello @ahmadsab95 , The SpringMigrationSuccessEvent / SpringMigrationFailureEvent events are triggered at the end of the Mongock's migration. As Mongock's execution happens within application startup (and before Springboot finish its startup), the Mongock's events will be triggered before Springboot's ApplicationReadyEvent event.

Note that Springboot is the one responsible of guaranteeing this, you just need to read the documentation about ApplicationRunner and InitializingBean and use the one that better fits your requirements.

For further details about Mongock's events please take a look to the Springboot runner events section in out documentation website.

Hope this helps.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ahmadsab95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants