Architecture
Configuration
Environment Variables
Configure Redis connection via environment variables (see.env.example):
Agent Configuration
No additional configuration needed in your agent code. Scheduler is configured via environment variables:Setting Up Redis
Local Development
Using Docker (Recommended)
Using Local Redis
Cloud Deployment
Upstash (Serverless Redis)
- Create account at upstash.com
- Create a new Redis database
- Copy the connection string (TLS enabled)
- Set environment variable:
Switching Between Scheduler Types
From Memory to Redis
-
Set environment variables:
- Restart agent
- Existing in-memory queue is lost (ephemeral)
From Redis to Memory
-
Update environment:
- Restart agent
- Tasks in Redis queue remain but won’t be processed