support streaming output of sub-workflows #11346

Closed
opened 2026-02-21 18:58:37 -05:00 by yindo · 0 comments
Owner

Originally created by @hieheihei on GitHub (Mar 17, 2025).

Self Checks

  • 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.

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

I'm trying to call the chat-workflow API to get a streaming response, but the response from the sub-workflow node is blocking.

Image

Image

As shown in the figure, there is a main workflow and a tool sub-workflow.

  • node 1:streaming
  • node 2:blocking(ok)
  • node 3:blocking(sub-workflow,need streaming)
  • node 4:streaming

the sub-workflow node 3 runs in a streaming manner, but when the main workflow is called, it has to wait until node 3 finishes running completely before there is an output all at once.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @hieheihei on GitHub (Mar 17, 2025). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I'm trying to call the chat-workflow API to get a streaming response, but the response from the sub-workflow node is blocking. ![Image](https://github.com/user-attachments/assets/23296770-18a4-4fb3-914d-12c6998be679) ![Image](https://github.com/user-attachments/assets/629b85b9-126b-455e-8fb2-3e476690430e) As shown in the figure, there is a main workflow and a tool sub-workflow. - node 1:streaming - node 2:blocking(ok) - node 3:blocking(sub-workflow,need streaming) - node 4:streaming the sub-workflow node 3 runs in a streaming manner, but when the main workflow is called, it has to wait until node 3 finishes running completely before there is an output all at once. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement🌊 feat:workflow labels 2026-02-21 18:58:37 -05:00
yindo closed this issue 2026-02-21 18:58:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11346