open-notebook/open_notebook
Matt Van Horn 8889087e31
Some checks failed
Development Build / extract-version (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Development Build / build-regular (push) Has been cancelled
Development Build / build-single (push) Has been cancelled
Development Build / summary (push) Has been cancelled
fix: make API startup resilient to a not-yet-ready database (#977)
* fix: make API startup resilient to a not-yet-ready database

Fixes #708

* fix: bound the database readiness probe with a per-attempt timeout

_wait_for_database awaited migration_manager.ping() with no timeout, so a
hung connection probe could bypass the retry budget and block startup
indefinitely. Wrap the probe in asyncio.wait_for with a per-attempt ceiling;
a timed-out probe is treated as a transient failure and retried like any
other unreachable-database attempt, keeping the retry budget bounded.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs: add CHANGELOG entry for startup database readiness retry (#708)

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Luis Novo <lfnovo@gmail.com>
2026-07-03 14:15:09 -03:00
..
ai fix: use a real speech clip for STT connection tests (#838) 2026-06-02 09:09:30 -03:00
database fix: make API startup resilient to a not-yet-ready database (#977) 2026-07-03 14:15:09 -03:00
domain feat: Recently Viewed section for notebooks and sources (#979) 2026-07-03 12:39:14 -03:00
graphs chore(release): prepare v1.10.0 (#923) 2026-06-18 07:44:05 -03:00
podcasts fix: pass max_tokens through to podcast_creator for outline/transcript generation (#982) 2026-07-03 12:23:19 -03:00
utils fix: handle special-token sequences in token counting (#949) 2026-06-21 15:29:46 -03:00
__init__.py refactor: move environment variables loading to application entry point (#283) 2025-12-01 14:59:50 -03:00
CLAUDE.md chore: bump version to 1.8.1 2026-03-10 20:20:16 -05:00
config.py fix: handle tiktoken network errors in offline environments (issue #264) 2026-03-10 19:45:14 -05:00
exceptions.py refactor database module and migrations 2024-10-30 16:33:07 -03:00