Lock Retry Count

Description

At the start of a migration, MigrateDB will attempt to take a lock to prevent competing instances executing in parallel. If this lock cannot be obtained straight away, MigrateDB will retry at 1s intervals, until this count is reached, at which point it will abandon the migration. A value of -1 indicates that MigrateDB should keep retrying indefinitely.

Default

Retry 50 times then fail

Usage

Command line

./migratedb -lockRetryCount=10 migrate

Configuration File

migratedb.lockRetryCount=10

Environment Variable

MIGRATEDB_LOCK_RETRY_COUNT=10

API

MigrateDb.configure()
    .lockRetryCount(10)
    .load()