mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
optimize db connections
This commit is contained in:
@ -99,6 +99,8 @@ class WorkflowAppGenerateTaskPipeline(WorkflowBasedGenerateTaskPipeline):
|
||||
self._output_moderation_handler = self._init_output_moderation()
|
||||
self._stream = stream
|
||||
|
||||
db.session.close()
|
||||
|
||||
def process(self) -> Union[dict, Generator]:
|
||||
"""
|
||||
Process generate task pipeline.
|
||||
|
||||
Reference in New Issue
Block a user