langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
36.36k stars 4.92k forks source link

Handling Iteration Node Failures Without Stopping Entire Workflow #4785

Open shelltea opened 1 month ago

shelltea commented 1 month ago

Self Checks

Dify version

0.6.9

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a workflow with an iteration node.
  2. Introduce an error in one of the iterations to cause it to fail.
  3. Observe the behavior of the entire workflow.

✔️ Expected Behavior

When an error occurs in a specific iteration, the entire workflow should not be blocked and subsequent iterations should continue to execute.

❌ Actual Behavior

Currently, if an iteration fails, the entire iteration process stops, and subsequent iterations do not execute.

Is there any configuration or setting that allows the iteration node to continue executing subsequent iterations even if one iteration fails?

wizd commented 2 weeks ago

IMHO every tool should have an exception handling connection point.

wizd commented 2 weeks ago

tool like web scraper almost has error rito like 5%. but there is no way to handle error for now.