From 1cd76f037b4ab293018c10348e9050f2dfbc7efc Mon Sep 17 00:00:00 2001
From: shaohuzhang1 <shaohu.zhang@fit2cloud.com>
Date: Thu, 7 Nov 2024 15:55:46 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9=E8=AF=9Dstre?=
 =?UTF-8?q?am=E6=B5=81=E5=BC=8F=E7=BB=93=E6=9D=9F=E6=A0=87=E8=AE=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 apps/application/flow/workflow_manage.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/application/flow/workflow_manage.py b/apps/application/flow/workflow_manage.py
index d5342c9c4cf..d2e99bce85d 100644
--- a/apps/application/flow/workflow_manage.py
+++ b/apps/application/flow/workflow_manage.py
@@ -304,11 +304,11 @@ def await_result(self, result):
                 if chunk is None:
                     break
                 yield chunk
-            yield self.get_chunk_content('', True)
         finally:
             self.work_flow_post_handler.handler(self.params['chat_id'], self.params['chat_record_id'],
                                                 self.answer,
                                                 self)
+        yield self.get_chunk_content('', True)
 
     def run_chain_async(self, current_node):
         future = executor.submit(self.run_chain, current_node)