fix(workflow): fix run_workflow streaming issues

Resolve exceptions during run_workflow streaming and define proper status codes for error cases.
This commit is contained in:
mengyonghao
2025-12-18 14:50:10 +08:00
committed by 谢俊男
parent 8c73aa60b9
commit 15fac38e30
2 changed files with 11 additions and 11 deletions

View File

@@ -473,7 +473,7 @@ async def run_workflow(
async def event_generator():
"""生成 SSE 事件"""
try:
async for event in service.run_workflow(
async for event in await service.run_workflow(
app_id=app_id,
input_data=input_data,
triggered_by=current_user.id,