Support all schedule types on PrefectDeployment#200
Merged
chrisguidry merged 1 commit intomainfrom Sep 19, 2025
Merged
Conversation
Adds support for cron and rrule schedules in addition to existing interval schedules. The implementation uses Prefect's exact prefect.yaml syntax, making it seamless for users to migrate existing configurations. Changes: - Flatten PrefectSchedule struct to match Prefect's API format exactly - Add cron and rrule fields with detailed API mapping comments - Update conversion logic to handle all three schedule types with validation - Fix HTTP status code handling to accept all 2xx responses (not just 200) - Add comprehensive test coverage for all schedule types and status codes - Update deployment_end-to-end.yaml to demonstrate all schedule formats - Update AGENTS.md with local testing procedures Schedule syntax now matches Prefect exactly: - Interval: interval: 60, anchor_date: "2024-01-01T00:00:00Z" - Cron: cron: "* * * * *", day_or: true - RRule: rrule: "RRULE:FREQ=MINUTELY;INTERVAL=1" Fixes #175 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for cron and rrule schedules to PrefectDeployment, completing support for all Prefect schedule types. The implementation uses Prefect's exact
prefect.yamlsyntax for seamless migration.interval: 60, anchor_date: "2024-01-01T00:00:00Z"cron: "* * * * *", day_or: truerrule: "RRULE:FREQ=MINUTELY;INTERVAL=1"Key Changes
Usage Example
Testing
deploy/samples/deployment_end-to-end.yamldemonstrates all three schedule typesCloses #175
🤖 Generated with Claude Code