Skip to content

[TECHDEBT] Document Python 3.9+ requirement and DB connection patterns #136

@deucebucket

Description

@deucebucket

Tech Debt

From vibe-check review on PR #134:

  1. Python version requirement: Path.is_relative_to() (used in pipeline layers) requires Python 3.9+. Dockerfile uses 3.11 so no issue, but should be documented in requirements.txt or pyproject.toml for anyone running outside Docker.

  2. DB connection pattern documentation: get_db() returns a new connection each time (standard Flask-SQLite). Multiple get_db() calls in the same function scope are safe but could confuse future contributors. Consider adding a brief comment in worker.py explaining the pattern.

  3. api_stats() query complexity: The queue count query now has a JOIN + filters. A comment explaining why (matching process_queue filters) would help future maintainers.

Low priority - none of these cause runtime issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4-lowMinor, cosmetic, nice-to-haveenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions