Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum execution time for Flyway migrations

Does anyone has experience with maximum execution time of Flyway migrations

  • What is the maximum execition time, if set by Flyway (or this depends on dababase settings primarily)?
  • What will happen when this time is hit?
  • What if multiple migrations are in chain and one of them timeouts, what will happen?

I have been unable to find any related information in docs or any articles.

like image 485
mikrotik_ Avatar asked Oct 27 '25 03:10

mikrotik_


1 Answers

Flyway itself currently does not set a timeout or maximum execution time. The timeout is managed by the target database and the settings on your connection to it.

There is a github issue thread here on this topic if you would like a timeout to be added and would like to share your scenario with the flyway team.

What happens when you hit a timeout (or if there is a network or other failure which causes the query to disconnect) will vary depending on how you are using transactions and whether your target database supports DDL statements within a transaction.

like image 109
kendra Avatar answered Oct 30 '25 15:10

kendra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!