Redgate Flyway

For PostgreSQL users - where are your DBs hosted?

Environment Connect Retries Interval Setting

Description

The maximum time between retries when attempting to connect to the database in seconds. This will cap the interval between connect retries to the value provided.

Type

Integer

Default

120

Usage

Flyway Desktop

This can't be set in a config file via Flyway Desktop, although it will be honoured, and it can be configured as an advanced parameter in operations on the Migrations page.

Command-line

./flyway -connectRetriesInterval=60 info

To configure a named environment via command line when using a TOML configuration, prefix connectRetriesInterval with environments.{environment name}. for example:

./flyway -environments.sample.connectRetriesInterval=60 info

TOML Configuration File

[environments.default]
connectRetriesInterval = 60

Configuration File

flyway.connectRetriesInterval=60

Environment Variable

FLYWAY_CONNECT_RETRIES_INTERVAL=60

API

Flyway.configure()
    .connectRetriesInterval(60)
    .load()

Gradle

flyway {
    connectRetriesInterval = 60
}

Maven

<configuration>
    <connectRetriesInterval>60</connectRetriesInterval>
</configuration>

Didn't find what you were looking for?