Redgate Summit – The Database DevOps Transformation Watch now
PASS Data Community Summit logo

PASS Data Community Summit

A hybrid conference in Seattle and online

15-18 November

Flyway Documentation

Poll

Connect Retries

Description

The maximum number of retries when attempting to connect to the database. After each failed attempt, Flyway will wait 1 second before attempting to connect again, up to the maximum number of times specified by connectRetries. The interval between retries doubles with each subsequent attempt.

Default

0

Usage

Commandline

./flyway -connectRetries=10 info

Configuration File

flyway.connectRetries=10

Environment Variable

FLYWAY_CONNECT_RETRIES=10

API

Flyway.configure()
    .connectRetries(10)
    .load()

Gradle

flyway {
    connectRetries = 10
}

Maven

<configuration>
    <connectRetries>10</connectRetries>
</configuration>