-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat(workflows): add loop state #1939
Conversation
Deploying rivet with Cloudflare Pages
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
PR Summary
This PR adds loop state functionality to the workflow system, enabling state persistence between loop iterations in workflow executions.
- Added new
state
JSONB column toworkflow_loop_events
table with migration20250124210139_add_loop_state.up.sql
- Added
loope
method toWorkflowCtx
for handling stateful loops with type-safe state management - Added
SerializeLoopState
/DeserializeLoopState
error variants to handle state serialization - Missing down migration for removing the
state
column could cause issues with schema rollbacks - Commented out
output
field inSubWorkflowEvent
may impact workflow monitoring capabilities
💡 (5/5) You can turn off certain types of comments like style here!
8 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
9412633
to
35b98b9
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> Fixes RVTEE-573 ## Changes <!-- If there are frontend changes, please include screenshots. -->
Fixes RVTEE-573
Changes