[PR #18838] Feat: workflow/chatflow api support async #29015

Closed
opened 2026-02-21 20:44:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/18838

State: closed
Merged: No


Summary

It does not affect the current usage method.
Just by adding one parameter: is_async, the api interface can support asynchronous requests.
You just need to poll the new interface to obtain the result.
If possible, we may also send the result to kafka after it is available.

Tip

Resolve https://github.com/langgenius/dify/issues/13474

Screenshots

Before After
none chatflow: image image
none. workflow: image image

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/18838 **State:** closed **Merged:** No --- # Summary It does not affect the current usage method. Just by adding one parameter: is_async, the api interface can support asynchronous requests. You just need to poll the new interface to obtain the result. If possible, we may also send the result to kafka after it is available. > [!Tip] > Resolve https://github.com/langgenius/dify/issues/13474 # Screenshots | Before | After | |--------|-------| | none | chatflow: <img width="811" alt="image" src="https://github.com/user-attachments/assets/ed58a157-843c-4cdb-9535-efd9b79fcd4c" /> <img width="866" alt="image" src="https://github.com/user-attachments/assets/839408ee-b2c0-4ceb-8560-b4c03943f69c" />| | none. | workflow: <img width="802" alt="image" src="https://github.com/user-attachments/assets/abba0ad9-e173-4c94-ab39-d5b995bf5efc" /> <img width="891" alt="image" src="https://github.com/user-attachments/assets/d3acceb9-a670-4553-9dc6-d5bbcca5e211" />| # Checklist > [!IMPORTANT] > Please review the checklist below before submitting your pull request. - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:44:42 -05:00
yindo closed this issue 2026-02-21 20:44:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29015