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

Add continue on failure as passthrough and cache_actions property #983

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Oct 15, 2024

Important

Add continueOnFailure and cacheActions properties to node types and update workflow editor utilities for enhanced failure handling and action caching.

  • Node Types:
    • Introduce NodeBaseData type with label and continueOnFailure properties in types.ts.
    • Extend NodeBaseData in CodeBlockNodeData, DownloadNodeData, FileParserNodeData, LoopNodeData, SendEmailNodeData, TaskNodeData, TextPromptNodeData, and UploadNodeData.
    • Add continueOnFailure: false to default data in CodeBlockNode, DownloadNode, FileParserNode, LoopNode, SendEmailNode, TaskNode, TextPromptNode, and UploadNode.
    • Add cacheActions: false to TaskNodeData and default data in TaskNode.
  • Workflow Editor Utils:
    • Update convertToNode() and getWorkflowBlock() in workflowEditorUtils.ts to handle continueOnFailure and cacheActions properties.
    • Use NodeBaseData for common node data handling in convertToNode().
  • Types:
    • Add cache_actions to TaskBlock in workflowTypes.ts and TaskBlockYAML in workflowYamlTypes.ts.

This description was created by Ellipsis for ca4d80b. It will automatically update as commits are pushed.

…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add `continueOnFailure` and `cacheActions` properties to node types and update workflow editor utilities for enhanced failure handling and action caching.
>
>   - **Node Types**:
>     - Introduce `NodeBaseData` type with `label` and `continueOnFailure` properties in `types.ts`.
>     - Extend `NodeBaseData` in `CodeBlockNodeData`, `DownloadNodeData`, `FileParserNodeData`, `LoopNodeData`, `SendEmailNodeData`, `TaskNodeData`, `TextPromptNodeData`, and `UploadNodeData`.
>     - Add `continueOnFailure: false` to default data in `CodeBlockNode`, `DownloadNode`, `FileParserNode`, `LoopNode`, `SendEmailNode`, `TaskNode`, `TextPromptNode`, and `UploadNode`.
>     - Add `cacheActions: false` to `TaskNodeData` and default data in `TaskNode`.
>   - **Workflow Editor Utils**:
>     - Update `convertToNode()` and `getWorkflowBlock()` in `workflowEditorUtils.ts` to handle `continueOnFailure` and `cacheActions` properties.
>     - Use `NodeBaseData` for common node data handling in `convertToNode()`.
>   - **Types**:
>     - Add `cache_actions` to `TaskBlock` in `workflowTypes.ts` and `TaskBlockYAML` in `workflowYamlTypes.ts`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 9c9dae06a80637bdd1e10e6b686fefef57cd4719. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on ca4d80b in 24 seconds

More details
  • Looked at 507 lines of code in 12 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/types.ts:5
  • Draft comment:
    The label property is already included in NodeBaseData and should not be redefined here.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_sC6kMYtmnwql7U6T


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to ca4d80b in 25 seconds

More details
  • Looked at 507 lines of code in 12 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/TextPromptNode/types.ts:5
  • Draft comment:
    The label property is already included in NodeBaseData and should not be redefined here.
  
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_jdxLDWm46G85JtQz


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@msalihaltun msalihaltun merged commit ec2217a into main Oct 15, 2024
2 checks passed
@msalihaltun msalihaltun deleted the salih/add-continue-as-failure-to-all-blocks branch October 15, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants