feat: Add continue_on_error support for workflow steps and actions#6554
Open
ausias-armesto wants to merge 3 commits into
Open
feat: Add continue_on_error support for workflow steps and actions#6554ausias-armesto wants to merge 3 commits into
ausias-armesto wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6553
Description
Adds a
continue_on_errorattribute to workflow steps and actions. When set totrue, a step or action failure is swallowed and execution continues to the next step/action.Default is
false, so existing workflows are unaffected.Changes
keep/step/step.pycontinue_on_errorattribute + property onStepkeep/workflowmanager/workflow.pyrun_steps()catchesStepErrorand continues;run_actions()suppresses the error, both when the flag is setkeep-ui/entities/workflows/model/yaml.schema.tscontinue_on_error: boolean (optional)added toYamlStepOrActionSchema— enables Monaco validation and autocompletetests/test_steps.pyStep.continue_on_errorpropertytests/test_workflowmanager.pyrun_steps()andrun_actions()docs/workflows/syntax/steps-and-actions.mdxdocs/workflows/examples/continue-on-error.mdxHow to test
optional-enrichmentat a URL that returns an error.always-runsstill executes and the workflow execution status issuccess.continue_on_error: trueand verify the workflow now stops at the failing step.