Skip to content

[P2.13] get_batch/list_batches/get_run/list_runs leak SQLite connections on query failure #762

Description

@frankbria

Severity: low | Category: correctness | Phase: P2.13

Problem

These hot-path readers conn.close() only on the happy path; any OperationalError (e.g. "database is locked" under parallel load) leaks the connection.

Evidence

codeframe/core/conductor.py:750

Acceptance criteria

Wrap connection use in try/finally (or a contextmanager), matching the tasks.py pattern.

Dependencies

None


Filed from the SaaS launch-readiness audit. Atomic: one developer, one session. Work order: strictly P0.1 → P3.12 (no forward dependencies).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-medium-betaMedium priority - nice to have for betapriority:lowtype:bugSomething is broken and needs fixing

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions