When two or more nodes are connected to multiple classes of a question classifier, only the last one configured will run in parallel. #7135

Closed
opened 2026-02-21 18:19:04 -05:00 by yindo · 1 comment
Owner

Originally created by @mihit on GitHub (Dec 10, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Make a question classifier having multiple classes.
  2. Connect each classes of them two or more nodes.
  3. Run it.

✔️ Expected Behavior

All classes run in pallarel their nodes.

Actual Behavior

Only the class last configured will run in parallel, others run single node.

Originally created by @mihit on GitHub (Dec 10, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.11.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Make a question classifier having multiple classes. 2. Connect each classes of them two or more nodes. 3. Run it. ### ✔️ Expected Behavior All classes run in pallarel their nodes. ### ❌ Actual Behavior Only the class last configured will run in parallel, others run single node.
yindo added the 🐞 bug label 2026-02-21 18:19:04 -05:00
yindo closed this issue 2026-02-21 18:19:04 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2024):

The behavior you're experiencing, where only the last configured class runs in parallel, might be related to the configuration settings for parallel execution in the Dify codebase. Specifically, the IterationNode class has a configuration option for parallel execution, which includes settings like is_parallel and parallel_nums that determine whether and how many nodes can run in parallel [1][2].

If the nodes connected to your question classifier are using this IterationNode or a similar configuration, it's possible that only the last configured node is set to run in parallel due to these settings. You might want to check the configuration of each node to ensure that they are all set to run in parallel if that is the desired behavior.

Additionally, the Dify documentation notes that parallel mode supports up to 10 concurrent iterations, which might also affect how nodes are executed if there are more than 10 tasks [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 10, 2024): <!-- Answer --> The behavior you're experiencing, where only the last configured class runs in parallel, might be related to the configuration settings for parallel execution in the Dify codebase. Specifically, the `IterationNode` class has a configuration option for parallel execution, which includes settings like `is_parallel` and `parallel_nums` that determine whether and how many nodes can run in parallel <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/iteration/iteration_node.py)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/iteration.md)</sup>. If the nodes connected to your question classifier are using this `IterationNode` or a similar configuration, it's possible that only the last configured node is set to run in parallel due to these settings. You might want to check the configuration of each node to ensure that they are all set to run in parallel if that is the desired behavior. Additionally, the Dify documentation notes that parallel mode supports up to 10 concurrent iterations, which might also affect how nodes are executed if there are more than 10 tasks <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/iteration.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/8018ad13-6de5-4751-b5b2-6f000e6c0771?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7135