Skip to content

Add retry logic to RunMigrations for DB connection failures#613

Open
mshivanna wants to merge 1 commit intouptane:masterfrom
mshivanna:feature/db-migration-retry
Open

Add retry logic to RunMigrations for DB connection failures#613
mshivanna wants to merge 1 commit intouptane:masterfrom
mshivanna:feature/db-migration-retry

Conversation

@mshivanna
Copy link
Copy Markdown

RunMigrations.apply now accepts optional retries (default 30) and retryDelay (default 3s) parameters. On failure, it retries using a tail-recursive loop with a configurable delay, allowing downstream apps to survive transient DB connection issues at startup without changes to their call sites.

RunMigrations.apply now accepts optional `retries` (default 30) and
`retryDelay` (default 3s) parameters. On failure, it retries using a
tail-recursive loop with a configurable delay, allowing downstream apps
to survive transient DB connection issues at startup without changes to
their call sites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bclouser bclouser self-assigned this Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants