semantics

This commit is contained in:
2026-04-02 12:12:23 +03:00
parent ea457c8d18
commit c6147385e5
15 changed files with 138 additions and 312 deletions

View File

@@ -3,7 +3,9 @@
# @SEMANTICS: task, cleanup, retention, logs
# @PURPOSE: Implements task cleanup and retention policies, including associated logs.
# @LAYER: Core
# @RELATION: Uses TaskPersistenceService and TaskLogPersistenceService to delete old tasks and logs.
# @RELATION: DEPENDS_ON -> [TaskPersistenceService]
# @RELATION: DEPENDS_ON -> [TaskLogPersistenceService]
# @RELATION: DEPENDS_ON -> [ConfigManager]
from typing import List
from .persistence import TaskPersistenceService, TaskLogPersistenceService
@@ -13,8 +15,9 @@ from ..config_manager import ConfigManager
# [DEF:TaskCleanupService:Class]
# @PURPOSE: Provides methods to clean up old task records and their associated logs.
# @COMPLEXITY: 3
# @RELATION: DEPENDS_ON -> Task_manager
# @RELATION: DEPENDS_ON -> ThrottledSchedulerConfigurator, CALL -> -> TaskCleanupService
# @RELATION: DEPENDS_ON -> [TaskPersistenceService]
# @RELATION: DEPENDS_ON -> [TaskLogPersistenceService]
# @RELATION: DEPENDS_ON -> [ConfigManager]
class TaskCleanupService:
# [DEF:__init__:Function]
# @PURPOSE: Initializes the cleanup service with dependencies.