Description: StartIdempotencyCleanupScheduler is defined but never called in main.go, causing expired idempotency records to accumulate.
Acceptance Criteria:
- Call StartIdempotencyCleanupScheduler in main.go
- Set cleanup interval to 1 hour
- Add graceful shutdown for cleanup goroutine
- Log cleanup statistics
Files to Change:
backend/main.go
backend/middleware/idempotency.go
PR Branch: fix/idempotency-cleanup-scheduler
PR Title: Start idempotency cleanup scheduler on application boot
Additional Notes: Records will grow unbounded without this
Description: StartIdempotencyCleanupScheduler is defined but never called in main.go, causing expired idempotency records to accumulate.
Acceptance Criteria:
Files to Change:
backend/main.gobackend/middleware/idempotency.goPR Branch:
fix/idempotency-cleanup-schedulerPR Title: Start idempotency cleanup scheduler on application boot
Additional Notes: Records will grow unbounded without this