-
Notifications
You must be signed in to change notification settings - Fork 89
PRD: Scheduled Agent Triggers (Cron Jobs) #1612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This PRD defines time-based agent triggers with: - Recurring schedules via cron expressions - One-time delayed execution - Exactly-once execution guarantees - Retry with exponential backoff - Full observability integration - Multi-surface support (API, UI, SDK, CLI) Includes comprehensive architecture diagrams for review. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @amikofalvy's task —— View job Technical Review: PRD - Scheduled Agent Triggers (Cron Jobs)As a TypeScript Staff Engineer and System Architect, I've conducted a thorough technical review of this PRD. The design is well-thought-out and follows existing patterns, but there are several architectural considerations and potential improvements to address. 🏗️ Excellent Design Decisions✅ Proper Architecture Separation
✅ Strong Observability
✅ Sound Multi-tenancy
|
Remove quotes and special characters that were causing parse errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
||
| ## Introduction | ||
|
|
||
| Add time-based scheduling capabilities to agent triggers, enabling both recurring schedules (cron-style) and one-time delayed execution. Currently, agents can only be triggered via webhooks or direct API calls. Users need the ability to schedule agents to run automatically—daily reports, periodic data syncs, scheduled reminders, or deferred task execution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
callout on the requirement I added to do deferred task execution. We might want to defer this work item to a later date, but it might be worth considering when designing the API for other types of scheduled workflows.
|
|
||
| 2. **Exactly-Once Execution**: Using Postgres advisory locks and transactional job claiming to prevent duplicate executions, with idempotency keys for downstream operations. | ||
|
|
||
| 3. **UTC-Only Scheduling**: All schedules stored and executed in UTC. Users convert their local times; no DST complexity in v1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to rethink this requirement. I worry that if we don't handle this now, we will neglect to do it later. It shouldn't be too hard to add in the initial implementation.
Summary
This PRD defines a new feature for time-based agent triggers, enabling:
Key Design Decisions
vercel.jsonconfig, unsuitable for dynamic multi-tenant schedules@workflow/*infrastructureArchitecture Diagrams Included
The PRD contains 13 Mermaid diagrams covering:
Surfaces Impacted
scheduledTrigger()builder)pull/pushsupport)Open Questions for Review
🤖 Generated with Claude Code