The retention scheduler is the automated engine that executes your retention policies. This guide covers how to configure, monitor, and troubleshoot the scheduler to ensure reliable email lifecycle management.
Scheduler Overview
The retention scheduler:
Runs automatically at configured intervals
Executes all active policies for each account
Handles errors gracefully with retry logic
Logs all activity for monitoring and troubleshooting
Provides manual control when needed
Screenshot: Retention scheduler interface
Scheduler Configuration
Basic Settings
Access scheduler settings at Retention → Scheduler:
Execution Schedule
Frequency: How often to run (daily recommended)
Start Time: When to begin execution (2 AM default)
Time Zone: Local time zone for scheduling
Execution Limits
Timeout: Maximum time per execution (30 minutes default)
Batch Size: Emails to process per batch (1000 default)
Max Retries: Retry attempts for failed operations (3 default)
Screenshot: Scheduler configuration settings
Advanced Configuration
Performance Tuning
Concurrent Accounts: Process multiple accounts simultaneously
IMAP Connections: Connection pool size
Memory Limits: Prevent excessive memory usage
Error Handling
Retry Delays: Time between retry attempts
Failure Notifications: Alert on persistent failures
Partial Failures: Continue processing other policies if one fails
Starting and Stopping the Scheduler
Manual Control
Screenshot: Scheduler status and controls
Start Scheduler
Click "Start Scheduler" button
Scheduler status changes to "Running"
Next execution time is displayed
Stop Scheduler
Click "Stop Scheduler" button
Current execution completes
No new executions begin
Force Stop
Use "Force Stop" for emergency situations
Interrupts current execution immediately
May leave operations incomplete
Automatic Startup
Configure scheduler to start automatically:
On Application Start
Enable "Auto-start with application"
Scheduler begins when Mail-Rulez starts
Useful for production deployments
After Restart
Enable "Resume after restart"
Scheduler remembers previous state
Continues scheduled executions
Scheduler Status and Monitoring
Real-Time Status
The scheduler dashboard shows:
Current State
Status: Running, Stopped, or Error
Current Activity: What's being processed
Progress: Completion percentage
ETA: Estimated time to completion
Recent Activity
Last Execution: When scheduler last ran
Duration: How long execution took
Emails Processed: Total count
Policies Executed: Number of policies run
Execution History
View detailed execution history:
Screenshot: Scheduler execution history
Execution Log
Start/End Times: Full execution window
Policies Executed: Which policies ran
Success/Failure Count: Per-policy results
Performance Metrics: Timing and throughput
Trend Analysis
Execution Time Trends: Performance over time
Email Volume Trends: Processing volume changes
Error Rate Trends: Reliability metrics
Manual Execution
When to Use Manual Execution
Testing new policies before automation
Recovering from errors in scheduled runs
Processing backlog after downtime
One-time cleanup operations
Running Manual Execution
Select Scope
All accounts and policies
Specific account only
Individual policy only
Choose Options
Preview Mode: See what would happen without changes