-
Notifications
You must be signed in to change notification settings - Fork 10
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] Add flow retry capability with state preservation #254
Conversation
Reorganize button implementation and update visual design: - Move inline button component from header to dedicated file - Update button styles with rounded corners and consistent height - Adjust shadow and typography properties for better aesthetics This change maintains functionality while improving design consistency across the playground interface.
Create execution snapshots that capture full graph context during execution: - Add ExecutionSnapshot type to store complete execution state - Include nodes, connections and flow data alongside execution details - Modify putExecutionAction to store entire snapshot instead of just execution - Add helper function to create snapshots from current graph state This change enables proper replay and debugging of past executions by preserving the complete graph state at execution time.
Add ability to retry failed flow executions with the following features: - Preserve completed step results from original execution - Retry only failed steps while maintaining execution context - Add retry button in failed step UI - Support full graph state restoration from execution snapshots This change allows users to retry failed flows without recreating the entire execution, saving time and maintaining execution history. Failed steps can be retried while preserving successful results from previous attempts.
Clean up execution state management and snapshot handling: - Restructure createExecutionSnapshot to use object params for clarity - Fix step completion check to preserve completed step results - Ensure retry uses original graph state from snapshot - Remove unnecessary status filtering in executeJob This change improves code maintainability and fixes issues with execution state preservation during retries.
@toyamarinyon is attempting to deploy a commit to the Edge Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dec18b_output.mp4I was able to record a stream of Overloaded errors in the Preview environment, which were resolved by re-running. |
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.
LGTM! ♻️
Screen.Recording.2024-12-18.at.17.59.19.mov
Changes
Testing
Note
It is difficult to artificially cause an error and then succeed with a further retry, so it is OK if the normal case can be confirmed.
Execute a node on the playground
/p/:agentId
Execute a flow on the playground
/p/:agentId