Skip to content

fix(db): raise read-pool acquire_timeout above busy_timeout - #7931

Merged
louis030195 merged 4 commits into
screenpipe:mainfrom
sharmis-tp:fix/read-pool-acquire-timeout
Nov 16, 2026
Merged

louis030195 merged 4 commits into
screenpipe:mainfrom
sharmis-tp:fix/read-pool-acquire-timeout

Conversation

@sharmis-tp

Copy link
Copy Markdown
Contributor

Summary

  • Raise the read pool acquire_timeout from 5s to 10s so it exceeds the per-connection busy_timeout (5s)
  • When the DB is locked, SQLite busy handler now has time to retry before the pool gives up

Fixes #7801

@github-actions

Copy link
Copy Markdown
Contributor

Closing this for now. We’ll reopen it if it’s helpful.

louis030195 and others added 3 commits November 16, 2026 09:34
Name the two deadlines, assert at compile time that the pool's is the
longer one, and add tests showing the masked PoolTimedOut with equal
deadlines and the typed busy error with the production ratio (screenpipe#7801).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@louis030195
louis030195 merged commit 8e40b9b into screenpipe:main Nov 16, 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.

Startup fails with PoolTimedOut after ~5 s when DB is locked: read-pool acquire_timeout (5 s) equals busy_timeout (5 s), masking typed SQLITE_BUSY

2 participants