|
|
|
@ -416,16 +416,11 @@ class AdvancedChatAppGenerateTaskPipeline:
|
|
|
|
if not self._workflow_run_id:
|
|
|
|
if not self._workflow_run_id:
|
|
|
|
raise ValueError("workflow run not initialized.")
|
|
|
|
raise ValueError("workflow run not initialized.")
|
|
|
|
|
|
|
|
|
|
|
|
with Session(db.engine, expire_on_commit=False) as session:
|
|
|
|
iter_start_resp = self._workflow_cycle_manager._workflow_iteration_start_to_stream_response(
|
|
|
|
workflow_run = self._workflow_cycle_manager._get_workflow_run(
|
|
|
|
task_id=self._application_generate_entity.task_id,
|
|
|
|
session=session, workflow_run_id=self._workflow_run_id
|
|
|
|
workflow_execution_id=self._workflow_run_id,
|
|
|
|
)
|
|
|
|
event=event,
|
|
|
|
iter_start_resp = self._workflow_cycle_manager._workflow_iteration_start_to_stream_response(
|
|
|
|
)
|
|
|
|
session=session,
|
|
|
|
|
|
|
|
task_id=self._application_generate_entity.task_id,
|
|
|
|
|
|
|
|
workflow_run=workflow_run,
|
|
|
|
|
|
|
|
event=event,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yield iter_start_resp
|
|
|
|
yield iter_start_resp
|
|
|
|
elif isinstance(event, QueueIterationNextEvent):
|
|
|
|
elif isinstance(event, QueueIterationNextEvent):
|
|
|
|
|