Variable Aggregator not aggregating/synchronising #5943

Closed
opened 2026-02-21 18:13:21 -05:00 by yindo · 3 comments
Owner

Originally created by @RyanxLowz on GitHub (Oct 7, 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.8.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

image

✔️ Expected Behavior

After the variable aggregator should have synchronised and run as a single branch

Actual Behavior

After the variable aggregator, all branches continued to run parallel

Originally created by @RyanxLowz on GitHub (Oct 7, 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.8.2 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce ![image](https://github.com/user-attachments/assets/0a6ca93d-008b-4e6f-a473-8b5e65cdb11f) ### ✔️ Expected Behavior After the variable aggregator should have synchronised and run as a single branch ### ❌ Actual Behavior After the variable aggregator, all branches continued to run parallel
yindo closed this issue 2026-02-21 18:13:21 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 7, 2024):

I found a similar discussion regarding issues with parallel execution in workflows. In version 0.8.0, there was a problem where the issue classifier was treated as a parallel execution branch [1].

For your specific issue with the Variable Aggregator not synchronizing, ensure that the advanced_settings.group_enabled flag is configured correctly. This flag controls whether the aggregator processes variables individually or as a group. If not set, it might cause the branches to continue running in parallel [2].

You can enable or configure this flag using the handleGroupEnabledChange function in your workflow settings [3].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 7, 2024): <!-- Answer --> I found a similar discussion regarding issues with parallel execution in workflows. In version 0.8.0, there was a problem where the issue classifier was treated as a parallel execution branch <sup>[[1]](https://github.com/langgenius/dify/discussions/8285)</sup>. For your specific issue with the Variable Aggregator not synchronizing, ensure that the `advanced_settings.group_enabled` flag is configured correctly. This flag controls whether the aggregator processes variables individually or as a group. If not set, it might cause the branches to continue running in parallel <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/variable_aggregator/variable_aggregator_node.py)</sup>. You can enable or configure this flag using the `handleGroupEnabledChange` function in your workflow settings <sup>[[3]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/nodes/variable-assigner/use-config.ts)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Oct 7, 2024):

Duplicated, this is an expected behavior. https://github.com/langgenius/dify/issues/8420

@crazywoola commented on GitHub (Oct 7, 2024): Duplicated, this is an expected behavior. https://github.com/langgenius/dify/issues/8420
Author
Owner

@RyanxLowz commented on GitHub (Oct 16, 2024):

@dosubot @crazywoola

I don't think its an expected behaviour, I have used the aggregate group flag
image
image

but i think the issue might be because i am trying to aggregate within a branch which doesn't seem to be supported yet. Could this be supported in later versions?

@RyanxLowz commented on GitHub (Oct 16, 2024): @dosubot @crazywoola I don't think its an expected behaviour, I have used the aggregate group flag ![image](https://github.com/user-attachments/assets/73c5ac29-c9a6-419c-bdde-764fa6e2e495) ![image](https://github.com/user-attachments/assets/8e406933-d607-4beb-86c9-fbbabbaafaff) but i think the issue might be because i am trying to aggregate within a branch which doesn't seem to be supported yet. Could this be supported in later versions?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5943