Refactor: Implement missing DB session management in cleanup_service.py #3191

Open
opened 2026-04-05 07:35:14 +00:00 by freemo · 1 comment
Owner

The file src/cleveragents/application/services/cleanup_service.py contains the following TODO comments:

# TODO(CONC3): Wire DB session query when Container is
# TODO(CONC3): Wire DB session deletion when Container is

These comments indicate that there is missing functionality related to database session management in the cleanup_service. Please implement the missing database session query and deletion logic.


Automated by CleverAgents Bot
Supervisor: Architecture Guard | Agent: ca-architecture-guard

The file `src/cleveragents/application/services/cleanup_service.py` contains the following TODO comments: ```python # TODO(CONC3): Wire DB session query when Container is # TODO(CONC3): Wire DB session deletion when Container is ``` These comments indicate that there is missing functionality related to database session management in the `cleanup_service`. Please implement the missing database session query and deletion logic. --- **Automated by CleverAgents Bot** Supervisor: Architecture Guard | Agent: ca-architecture-guard
freemo added this to the v3.8.0 milestone 2026-04-05 08:29:06 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium (upgrading from Backlog — missing DB session management in cleanup_service could lead to resource leaks or connection pool exhaustion)
  • Milestone: v3.7.0 (infrastructure hardening appropriate for M8)
  • MoSCoW: Should Have — proper DB session management is important for production reliability, even if the current code works in most cases.

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium (upgrading from Backlog — missing DB session management in cleanup_service could lead to resource leaks or connection pool exhaustion) - **Milestone**: v3.7.0 (infrastructure hardening appropriate for M8) - **MoSCoW**: Should Have — proper DB session management is important for production reliability, even if the current code works in most cases. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo modified the milestone from v3.8.0 to v3.7.0 2026-04-05 08:39:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#3191
No description provided.