Schedule Optimizer
The Schedule Optimizer converts business timing requirements into optimal cron expressions, handling timezone complexities, load distribution, and conflict detection.Quick Reference
| Property | Value |
|---|---|
| Domain | Automation |
| FORGE Stage | 3 (Documentation) |
| Version | 1.0.0 |
| Primary Output | Optimized cron expression + trigger config |
Overview
Use this agent when: You need to schedule workflows with optimal timing, timezone handling, and resource distribution.
- Cron Optimization: Convert business requirements to cron
- Load Distribution: Spread executions to avoid contention
- Conflict Detection: Identify scheduling conflicts
- Timezone Handling: Correct behavior across zones and DST
Core Capabilities
Cron Optimization
Convert timing requirements to optimal cron expressions
Load Distribution
Spread workflow executions evenly
Conflict Detection
Identify and resolve schedule conflicts
Timezone Handling
Handle DST and timezone conversions
When to Use
✅ Use Schedule Optimizer for:
- Daily/weekly/monthly reports
- Business hour automation
- Timezone-aware scheduling
- Resource-intensive workflows needing load balancing
- Complex recurring patterns
Common Patterns
| Business Need | Cron Expression | Timezone |
|---|---|---|
| Every weekday 9 AM EST | 0 14 * * 1-5 | UTC (EST+5) |
| First Monday of month | 0 10 * * 1#1 | Local |
| Every 4 hours, business hours | 0 9-17/4 * * * | Local |
| Last day of month | 0 10 L * * | UTC |
Usage Examples
- Daily Reports
- Complex Recurring
Outputs
Schedule Configuration
FORGE Gate Compliance
Entry Gate
- Timing requirement specified
- Timezone context provided
- Existing schedule inventory available
Exit Gate
- Optimized cron expression with rationale
- Trigger configuration for n8n
- Conflict analysis completed
- Load distribution recommendations provided
Best Practices
Always use UTC in production
Always use UTC in production
Store and execute schedules in UTC to avoid DST complexity. Convert to local time for display only.
Distribute similar workflows
Distribute similar workflows
If you have 10 daily reports at 9 AM, stagger them (9:00, 9:02, 9:04…) to avoid resource spikes.
Account for execution time
Account for execution time
If a workflow takes 10 minutes, don’t schedule the next one for 9:05 AM.
Test DST transitions
Test DST transitions
Verify behavior during spring forward (lost hour) and fall back (repeated hour).
Integration Points
Control Plane API
| Endpoint | Purpose |
|---|---|
GET /api/v1/workflows/schedules | Query existing schedules |
GET /api/v1/metrics/execution-times | Get average execution times |
Veritas Integration
Consumes:vrt-c3d4e5f6: Scheduling best practicesvrt-g7h8i9j0: Resource optimization strategies
Related Agents
| Agent | Relationship |
|---|---|
| Workflow Architect | Designs overall workflow with schedule trigger |
Source Files
Agent Definition
View full agent markdown