Skip to content

Commit 7d0469d

Browse files
committed
feat(workflow-creator): add continue_on_error option to yaml configs
This update introduces the `continue_on_error` flag to the `requirements.yaml` and `decompose.yaml` configuration files within the workflow-creator module. This flag allows workflows to proceed even if errors occur, enhancing the robustness and flexibility of the workflow execution process.
1 parent 0e65e5a commit 7d0469d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/workflows_mcp/templates/agents/workflow-creator/layer1/requirements.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ blocks:
3030
type: Prompt
3131
for_each: "{{inputs.questions}}"
3232
for_each_mode: sequential
33+
continue_on_error: true
3334
condition: "{{each.key not in inputs.answers}}"
3435
inputs:
3536
prompt: |
@@ -41,7 +42,7 @@ blocks:
4142
description: "System prompt for requirements gathering"
4243
depends_on:
4344
- block: gather_requirements
44-
required: false # Optional: may be skipped if all answers pre-provided
45+
required: false # Optional: may be skipped if all answers pre-provided
4546
type: CreateFile
4647
inputs:
4748
create_parents: true
@@ -60,7 +61,7 @@ blocks:
6061
description: "User prompt for requirements gathering"
6162
depends_on:
6263
- block: gather_requirements
63-
required: false # Optional: may be skipped if all answers pre-provided
64+
required: false # Optional: may be skipped if all answers pre-provided
6465
type: CreateFile
6566
inputs:
6667
create_parents: true

src/workflows_mcp/templates/agents/workflow-creator/layer2/decompose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ blocks:
8888
type: Workflow
8989
for_each: "{{inputs.sub_workflows}}"
9090
for_each_mode: sequential
91+
continue_on_error: true
9192
depends_on: [prepare_sub_requirements]
9293
condition: "{{inputs.current_depth < inputs.max_depth}}"
9394
inputs:

0 commit comments

Comments
 (0)