Skip to content

Commit a0dc4c0

Browse files
authored
fix: Return the link to the connection pool after the node execution is completed (#3919)
1 parent 4c878b0 commit a0dc4c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/application/flow/workflow_manage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from functools import reduce
1515
from typing import List, Dict
1616

17-
from django.db import close_old_connections
17+
from django.db import close_old_connections, connection
1818
from django.db.models import QuerySet
1919
from django.utils import translation
2020
from django.utils.translation import get_language
@@ -569,6 +569,8 @@ def hand_event_node_result(self, current_node, node_result_future):
569569
return None
570570
finally:
571571
current_node.node_chunk.end()
572+
# 归还链接
573+
connection.close()
572574

573575
def run_node_async(self, node):
574576
future = executor.submit(self.run_node, node)

0 commit comments

Comments
 (0)