langgenius / langgenius/dify

Could a conditional retry feature be added to the workflow nodes?

Open
#36,745 4 comments 1 reaction 0 assignees View on GitHub
project#dify
Dominant language
TypeScript
Stars
156k
Forks
24.6k
Avg merge
20h 50m
Merged PRs (30d)
586

Description

### Self Checks

- [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542).
- [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] Please do not modify this template :) and fill in all the required fields.

### 1. Is this request related to a challenge you're experiencing? Tell me about your story.

Add a conditional retry feature to workflow nodes. For example, allow writing custom functions to decide whether to retry. This could be used to check whether the output is empty, whether the output JSON is correct and can be parsed normally, or whether the output result is complete based on certain markers. In this way, users can decide under which circumstances a retry is needed according to their own requirements, and each node can be defined independently for greater flexibility. I hope such a feature can be added.

### 2. Additional context or comments

_No response_

### 3. Can you help us with this feature?

- [ ] I am interested in contributing to this feature.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.