mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 03:35:57 +08:00
fix: db connections not being released during workflow execution (#3971)
This commit is contained in:
parent
3e9dbe3e0a
commit
b82a2d97ef
@ -380,6 +380,8 @@ class WorkflowAppGenerateTaskPipeline(BasedGenerateTaskPipeline, WorkflowCycleMa
|
|||||||
self._task_state.answer += text
|
self._task_state.answer += text
|
||||||
yield self._text_chunk_to_stream_response(text)
|
yield self._text_chunk_to_stream_response(text)
|
||||||
|
|
||||||
|
db.session.close()
|
||||||
|
|
||||||
def _is_stream_out_support(self, event: QueueTextChunkEvent) -> bool:
|
def _is_stream_out_support(self, event: QueueTextChunkEvent) -> bool:
|
||||||
"""
|
"""
|
||||||
Is stream out support
|
Is stream out support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user