This commit is contained in:
2026-08-23 22:52:13 +02:00
parent 8983cfc8a1
commit 296dc3c841
32 changed files with 2025 additions and 52 deletions
+6
View File
@@ -380,6 +380,12 @@ func main() {
} else if n > 0 {
log.Printf("worker: ai call log cleanup removed=%d older_than_days=%d", n, aiaudit.RetentionDays)
}
// Cost rollup is kept for years, unlike the prompt bodies above.
if n, err := aiaudit.CleanupExpiredUsage(ctx, pool); err != nil {
log.Printf("worker: ai usage cleanup: %v", err)
} else if n > 0 {
log.Printf("worker: ai usage cleanup removed=%d older_than_days=%d", n, aiaudit.UsageRetentionDays)
}
if res, err := processing.CleanupExpiredSyncJobs(ctx, pool); err != nil {
log.Printf("expired sync cleanup: %v", err)
} else if res.SyncJobsDeleted > 0 {