Skip to content

fix(migrations): retry temporary sqlite lock errors (#789)#1416

Open
cloudyun888 wants to merge 1 commit into
simonw:mainfrom
cloudyun888:fix/migrations-retry-locked-db-789
Open

fix(migrations): retry temporary sqlite lock errors (#789)#1416
cloudyun888 wants to merge 1 commit into
simonw:mainfrom
cloudyun888:fix/migrations-retry-locked-db-789

Conversation

@cloudyun888
Copy link
Copy Markdown

@cloudyun888 cloudyun888 commented Apr 22, 2026

Summary

  • retry migration startup when SQLite reports a temporary lock
  • only retry lock-related sqlite3.OperationalError cases
  • add a regression test for a transient lock on the migrations table

Testing

  • pytest --noconftest tests/test_migrate.py -q
  • python3 -m py_compile llm/migrations.py tests/test_migrate.py

Fixes #789

- retry migration startup when sqlite reports a locked database
- only retry lock-related OperationalError cases
- add a regression test for a transient lock on the migrations table

Fixes simonw#789
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.

sqlite locking errors when invoking llm under xargs

2 participants