[claude] Add error handling for missing DB in tasks.py (#943) #1003

Closed
claude wants to merge 1 commits from claude/issue-943 into main

1 Commits

Author SHA1 Message Date
Alexander Whitestone
bee62403fd fix: add graceful degradation for DB errors in tasks.py
Some checks failed
Tests / lint (pull_request) Failing after 3s
Tests / test (pull_request) Has been skipped
Wrap all _get_db() calls with sqlite3.OperationalError handling so
endpoints degrade gracefully when the task DB is locked or missing:
- Read endpoints (page, partials, list, queue status) return empty data
- Write endpoints (create, update, delete) return 503

Fixes #943

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 19:03:02 -04:00