Job Cleanup
Learn how to manage job data retention and implement cleanup policies.
Overview
Section titled “Overview”Jobs are stored in Redis with a 7-day TTL by default. This guide covers customizing retention and implementing cleanup.
Default Behavior
Section titled “Default Behavior”- Completed jobs: 7 days
- Failed jobs: 7 days
- Pending jobs: Until processed or expired
Custom Retention
Section titled “Custom Retention”Configure custom TTL in config.yaml:
jobs: ttl: 168h # 7 days failed_ttl: 336h # 14 days for failed jobsManual Cleanup
Section titled “Manual Cleanup”# Clean up old jobsredis-cli --scan --pattern "mend:job:*" | xargs redis-cli delNext Steps
Section titled “Next Steps”- Learn about Job Status
- Explore Architecture