Browse Source

fix: db connections not being released during workflow execution (#3971)

tags/0.6.6
takatost 1 year ago
parent
commit
b82a2d97ef
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      api/core/app/apps/workflow/generate_task_pipeline.py

+ 2
- 0
api/core/app/apps/workflow/generate_task_pipeline.py View File

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…
Cancel
Save