dify icon indicating copy to clipboard operation
dify copied to clipboard

chatflow and workflow APIs support asynchronous mode calls

Open xiaoyesoso opened this issue 10 months ago • 6 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [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.

Currently, only blocking mode and streaming mode are supported, but in many time-consuming scenarios, an API that can be called in asynchronous mode is required.

2. Additional context or comments

No response

3. Can you help us with this feature?

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

xiaoyesoso avatar Feb 10 '25 07:02 xiaoyesoso

We will working on this later.

crazywoola avatar Feb 10 '25 11:02 crazywoola

Hi, @xiaoyesoso. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You requested asynchronous mode calls for chatflow and workflow APIs.
  • Current modes are limited to blocking and streaming.
  • @crazywoola mentioned plans to work on this feature in the future.
  • You have not expressed interest in contributing to this feature's development.

Next Steps:

  • Is this issue still relevant to the latest version of Dify? If so, please comment to keep the discussion open.
  • If there are no updates, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 13 '25 16:03 dosubot[bot]

Hi, @xiaoyesoso. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You requested asynchronous mode calls for chatflow and workflow APIs.
  • Current modes are limited to blocking and streaming.
  • @crazywoola mentioned plans to work on this feature in the future.
  • You have not expressed interest in contributing to this feature's development.

Next Steps:

  • Is this issue still relevant to the latest version of Dify? If so, please comment to keep the discussion open.
  • If there are no updates, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

this issue is still relevant to the latest version of Dify

xiaoyesoso avatar Mar 18 '25 03:03 xiaoyesoso

@crazywoola, the user @xiaoyesoso has confirmed that the issue regarding asynchronous mode calls for chatflow and workflow APIs is still relevant to the latest version of Dify. Could you please assist them with this?

dosubot[bot] avatar Mar 18 '25 03:03 dosubot[bot]

I'm highly concerned about this issue, as I urgently need to implement asynchronous processing to achieve decoupling - the synchronous execution wait time in our workflow is simply too long and frequently results in timeouts.

q785383749 avatar Mar 27 '25 08:03 q785383749

我们的工作流执行比较长, 急需异步功能。 大神什么时候上线。 @crazywoola

gyf19 avatar Apr 25 '25 10:04 gyf19

Is it possible to have suspended tasks, where tasks are suspended during asynchronous execution and the workflow is activated after the task is completed to achieve continuation functionality

VanhaYang avatar May 07 '25 09:05 VanhaYang

Hi, @xiaoyesoso. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested asynchronous mode support for chatflow and workflow APIs to better handle long-running tasks.
  • Current options are blocking or streaming only, which can cause timeouts and long waits.
  • The maintainer acknowledged plans to work on this feature but has not provided a timeline.
  • Other users have expressed urgency for asynchronous processing and asked about handling suspended tasks for workflow continuation.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of Dify by commenting here to keep the discussion open.
  • If I do not hear back within 15 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

dosubot[bot] avatar Sep 01 '25 16:09 dosubot[bot]