Files
Sathira Sri Sathara 5158c52db5
CI / test (push) Successful in 10m56s
CI / test (pull_request) Successful in 11m1s
feat: Add Phase 11 analytics and production readiness features
- Introduced new endpoints for account overview, analytics, and metrics.
- Implemented authorization matrix and backup/restore documentation.
- Added smoke test script and updated package dependencies.
- Created detailed production checklist and runbook for deployment.
- Established cron operations and notification event matrix documentation.
- Enhanced security and validation audits for analytics and metrics services.
- Added unit tests for analytics and metrics functionalities.
2026-09-16 10:59:19 +05:30

12 lines
955 B
Markdown

# Cron Operations
| Job | Schedule | Authority / boundedness | Idempotency |
|---|---|---|---|
| Notification cleanup | configured source schedule | DB records; retention bounded | repeated delete safe |
| Inventory reservation expiry | frequent | batch-limited DB scan | reservation state/event key |
| Checkout expiry | frequent | batch-limited DB scan | checkout/reservation state |
| Loyalty reconciliation | scheduled | configured batch | ledger event IDs |
| Support SLA + recommendation retention | every 5 minutes | 100 SLA / 1,000 event max | deterministic escalation key / old-event deletion |
Cron starts only when the deployment enables `RUN_CRON`; use one dedicated scheduler replica. Current jobs use local `noOverlap` where available but do not all have a distributed lock, so multi-instance cron is prohibited until staging validates/implements Redis locking. All times are server/UTC clock time unless a domain snapshot says otherwise.