Scheduler Deployment
Deploy scheduled agent and recipe execution for 24/7 autonomous operations in production environments.Overview
The scheduler provides:- Interval-based agent/recipe execution
- PM2-style daemon management
- Cost budgeting and monitoring
- Automatic retry with exponential backoff
- Centralized logging
Quick Start
Start a Scheduler
Manage Schedulers
Python Deployment
Docker Deployment
Dockerfile
Docker Compose
Configuration
Schedule Intervals
| Format | Interval | Description |
|---|---|---|
hourly | 3600s | Every hour |
daily | 86400s | Every 24 hours |
*/30m | 1800s | Every 30 minutes |
*/6h | 21600s | Every 6 hours |
*/5s | 5s | Every 5 seconds (testing) |
3600 | 3600s | Custom seconds |
TEMPLATE.yaml Runtime Block
Configure scheduler defaults in your recipe:Safe Defaults
| Setting | Default | Description |
|---|---|---|
interval | hourly | Execution interval |
max_retries | 3 | Retry attempts on failure |
timeout_sec | 300 | Timeout per execution |
max_cost_usd | 1.00 | Budget limit |
Production Considerations
Cost Monitoring
Set budget limits to prevent runaway costs:Logging
Logs are stored in~/.praisonai/logs/:
State Persistence
Scheduler state is persisted in~/.praisonai/schedulers/:
Error Handling
The scheduler automatically retries failed executions with exponential backoff:- Attempt 1: Execute immediately
- Attempt 2: Wait 30s, retry
- Attempt 3: Wait 60s, retry
- Attempt 4: Wait 90s, retry
- Attempt 5: Wait 120s, retry

