Schedule workflow runs with Date or duration string#248
Merged
jamescmartinez merged 4 commits intomainfrom Feb 4, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
Adds support for scheduling workflow runs to start at a specific time by introducing an availableAt run option that accepts either an absolute Date or a duration string (e.g. "5m").
Changes:
- Add
availableAt?: Date | DurationStringtoWorkflowRunOptionsand resolve duration strings to an absoluteDatebefore persisting the run. - Add client tests covering
availableAtwith aDate, a duration string, and invalid duration handling. - Update README and docs to document scheduled runs usage.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/openworkflow/client.ts | Adds availableAt run option and converts duration strings into an absolute Date during run creation. |
| packages/openworkflow/client.test.ts | Adds tests validating scheduled run creation and invalid duration behavior. |
| packages/openworkflow/README.md | Updates feature list to include scheduled runs. |
| packages/docs/docs/workflows.mdx | Documents how to schedule a workflow run using availableAt with Date or duration strings. |
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.
#246
Summary
This PR adds support for scheduling runs with either a
Dateor a duration string (e.g.,5m).