[kimi-task] Extract hardcoded PRAGMA busy_timeout=5000 to config #776

Closed
opened 2026-03-21 19:16:49 +00:00 by Timmy · 0 comments
Owner

Type: Config extraction

Files with hardcoded value:

  • src/timmy/memory_system.py line 114: PRAGMA busy_timeout=5000
  • src/timmy/memory_system.py line 952: PRAGMA busy_timeout=5000
  • src/timmy/memory/unified.py line 31: PRAGMA busy_timeout=5000

The SQLite busy_timeout of 5000ms is hardcoded in 3 places. Add a db_busy_timeout_ms field to the settings in src/config.py (default 5000) and reference it from all 3 locations.

Files to change: 3 files — src/config.py, src/timmy/memory_system.py, src/timmy/memory/unified.py

**Type:** Config extraction **Files with hardcoded value:** - `src/timmy/memory_system.py` line 114: `PRAGMA busy_timeout=5000` - `src/timmy/memory_system.py` line 952: `PRAGMA busy_timeout=5000` - `src/timmy/memory/unified.py` line 31: `PRAGMA busy_timeout=5000` The SQLite busy_timeout of 5000ms is hardcoded in 3 places. Add a `db_busy_timeout_ms` field to the settings in `src/config.py` (default 5000) and reference it from all 3 locations. **Files to change:** 3 files — `src/config.py`, `src/timmy/memory_system.py`, `src/timmy/memory/unified.py`
kimi was assigned by Timmy 2026-03-21 19:16:49 +00:00
kimi added this to the Code Hygiene milestone 2026-03-21 20:25:05 +00:00
Timmy closed this issue 2026-03-22 01:46:16 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#776