refactor(backend-defaults): clean up database creation retry loop

Refactor the postgres database creation retry loop to avoid an
unnecessary sleep after the final failed attempt, and improve
readability by using named variables.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-04-09 15:12:07 +02:00
parent c705d44e4b
commit 547258f67b
2 changed files with 39 additions and 30 deletions
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Refactored the database creation retry loop to avoid an unnecessary delay after the final failed attempt.