automatyzacje-comit1

This commit is contained in:
Mateusz Gruszczyński
2026-05-07 07:24:16 +02:00
parent 2691442fc1
commit 440b187c39
6 changed files with 128 additions and 25 deletions

View File

@@ -30,6 +30,8 @@ def cleanup(force: bool = False) -> dict[str, int]:
targets = {
"traffic_history": ("created_at", TRAFFIC_HISTORY_RETENTION_DAYS),
"smart_queue_history": ("created_at", SMART_QUEUE_HISTORY_RETENTION_DAYS),
# Note: Automation history follows Smart Queue retention; rules and rule state are never deleted here.
"automation_history": ("created_at", SMART_QUEUE_HISTORY_RETENTION_DAYS),
"jobs": ("updated_at", JOBS_RETENTION_DAYS),
"logs": ("created_at", LOG_RETENTION_DAYS),
}