Skip to content

Conversation

@dphuang2
Copy link
Collaborator

@dphuang2 dphuang2 commented Dec 16, 2025

Note

Add SQLite lock-aware retry/backoff and switch evaluation upsert to IMMEDIATE transactions, applying retries across event bus DB operations.

  • Database reliability:
    • Retry helper: Add execute_with_sqlite_retry with exponential backoff (targets OperationalError "database is locked").
    • Event bus DB (eval_protocol/event_bus/sqlite_event_bus_database.py): Wrap publish_event, mark_event_processed, and cleanup_old_events in the retry helper.
    • Evaluation row store (eval_protocol/dataset_logger/sqlite_evaluation_row_store.py): Refactor upsert into _do_upsert and switch transaction mode to atomic("IMMEDIATE"); wrap upsert with the retry helper.

Written by Cursor Bugbot for commit 5b35f2c. This will update automatically on new commits. Configure here.

@dphuang2 dphuang2 changed the title Fix peewee.OperationalError: database is locked in CI Fix peewee.OperationalError: database is locked in CI Dec 16, 2025
@dphuang2 dphuang2 enabled auto-merge (squash) December 16, 2025 03:26
@dphuang2 dphuang2 merged commit 6f6afa2 into main Dec 16, 2025
16 of 17 checks passed
@dphuang2 dphuang2 deleted the dhuang/dxe-440-fix-peeweeoperationalerror-database-is-locked-in-ci branch December 16, 2025 03:32
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