-
Notifications
You must be signed in to change notification settings - Fork 944
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 in task block #981
Conversation
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add `continueOnFailure` feature to `TaskNode` to allow tasks to continue on failure, updating UI, types, and conversion utilities. > > - **Behavior**: > - Add `continueOnFailure` property to `TaskNode` in `TaskNode.tsx` to allow tasks to continue on failure. > - Update UI in `TaskNode.tsx` to include a switch for `continueOnFailure`. > - **Types**: > - Add `continueOnFailure` to `TaskNodeData` and `taskNodeDefaultData` in `types.ts`. > - **Utils**: > - Update `convertToNode()` and `getWorkflowBlock()` in `workflowEditorUtils.ts` to handle `continueOnFailure` property. > > <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 8438c7b6e205f5a8358a3982bdbfbfebc81994e4. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
…src/' <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add `continueOnFailure` feature to `TaskNode` to allow tasks to continue on failure, updating UI, types, and conversion utilities. > > - **Behavior**: > - Add `continueOnFailure` property to `TaskNode` in `TaskNode.tsx` to allow tasks to continue on failure. > - Update UI in `TaskNode.tsx` to include a switch for `continueOnFailure`. > - **Types**: > - Add `continueOnFailure` to `TaskNodeData` and `taskNodeDefaultData` in `types.ts`. > - **Utils**: > - Update `convertToNode()` and `getWorkflowBlock()` in `workflowEditorUtils.ts` to handle `continueOnFailure` property. > > <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 8438c7b6e205f5a8358a3982bdbfbfebc81994e4. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
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.
👍 Looks good to me! Incremental review on 6b74d28 in 26 seconds
More details
- Looked at
79
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx:342
- Draft comment:
Consider adding aHelpTooltip
forContinue on Failure
to provide users with more context about this option. - Reason this comment was not posted:
Confidence changes required:50%
ThecontinueOnFailure
property is being added to theTaskNode
component and its related types and utilities. However, there is a missing tooltip for this new property in the UI, which could help users understand its purpose.
Workflow ID: wflow_juTrzRVJ0kbb2Rf8
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Reviewed everything up to 6b74d28 in 1 minute and 1 seconds
More details
- Looked at
1357
lines of code in21
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/editor/nodes/TaskNode/TaskNode.tsx:73
- Draft comment:
Consider providing a default value forcontinueOnFailure
in theinputs
object to avoid potential undefined behavior ifdata.continueOnFailure
is not set. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment is relevant to the change made in the diff, which addedcontinueOnFailure
to theinputs
object. The suggestion to provide a default value is actionable and could prevent potential issues ifdata.continueOnFailure
is undefined. This aligns with the rule that suggests code quality refactors are good if they are actionable and clear.
The code might handle undefined values forcontinueOnFailure
elsewhere, making the comment unnecessary. Without seeing the entire codebase, it's hard to confirm if this is the case.
The comment is about a potential issue directly related to the change made in the diff. Without evidence that the issue is already handled, it's reasonable to consider the comment valid.
Keep the comment as it suggests an actionable improvement related to the change made in the diff.
2. skyvern/forge/sdk/workflow/service.py:1128
- Draft comment:
The addition ofcontinueOnFailure
to theTaskBlock
and other block types is consistent with the PR description and ensures that the property is handled across different block types. - Reason this comment was not posted:
Confidence changes required:30%
ThecontinueOnFailure
property is being added to multiple block types inblock_yaml_to_block
function. This is consistent with the PR description and ensures that the property is handled across different block types.
3. skyvern/webeye/actions/actions.py:162
- Draft comment:
Theparse_action
function correctly handles thecontinueOnFailure
property by mapping it to the appropriate action types, ensuring its utilization during action parsing. - Reason this comment was not posted:
Confidence changes required:30%
Theparse_action
function inactions.py
is handling thecontinueOnFailure
property correctly by mapping it to the appropriate action types. This ensures that the property is utilized during action parsing.
Workflow ID: wflow_TIJy0UmFOzOFucLo
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Add
continueOnFailure
feature toTaskNode
to allow tasks to continue on failure, updating UI, types, and conversion utilities.continueOnFailure
property toTaskNode
inTaskNode.tsx
to allow tasks to continue on failure.TaskNode.tsx
to include a switch forcontinueOnFailure
.continueOnFailure
toTaskNodeData
andtaskNodeDefaultData
intypes.ts
.convertToNode()
andgetWorkflowBlock()
inworkflowEditorUtils.ts
to handlecontinueOnFailure
property.CachedActionPlanError
class fromexceptions.py
.retrieve_action_plan()
and related functions fromagent.py
andcaching.py
.calculate_sha256_for_file()
tocalculate_sha256()
infiles.py
.This description was created by
for 6b74d28. It will automatically update as commits are pushed.