Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

MasterPtato
Copy link
Contributor

@MasterPtato MasterPtato commented Jan 24, 2025

Fixes RVTEE-573

Changes

Copy link

cloudflare-workers-and-pages bot commented Jan 24, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 35b98b9
Status: ✅  Deploy successful!
Preview URL: https://b0240445.rivet.pages.dev
Branch Preview URL: https://01-24-feat-workflows-add-loo.rivet.pages.dev

View logs

Copy link

linear bot commented Jan 24, 2025

RVTEE-573

Copy link
Contributor Author

MasterPtato commented Jan 24, 2025


How to use the Graphite Merge Queue

Add 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.

Copy link

@greptile-apps greptile-apps bot left a 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 to workflow_loop_events table with migration 20250124210139_add_loop_state.up.sql
  • Added loope method to WorkflowCtx 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 in SubWorkflowEvent 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

Copy link
Contributor

graphite-app bot commented Jan 27, 2025

Merge activity

  • Jan 27, 6:21 PM EST: A user added this pull request to the Graphite merge queue.
  • Jan 27, 6:22 PM EST: CI is running for this PR on a draft PR: #1945
  • Jan 27, 6:23 PM EST: A user merged this pull request with the Graphite merge queue via draft PR: #1945.

NathanFlurry pushed a commit that referenced this pull request Jan 27, 2025
<!-- 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. -->
@graphite-app graphite-app bot closed this Jan 27, 2025
@graphite-app graphite-app bot deleted the 01-24-feat_workflows_add_loop_state branch January 27, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants