Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
100fb0c5
Commit
100fb0c5
authored
Mar 10, 2024
by
takatost
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize workflow db connections
parent
b75cd251
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
96 deletions
+105
-96
generate_task_pipeline.py
api/core/app/apps/advanced_chat/generate_task_pipeline.py
+51
-48
generate_task_pipeline.py
api/core/app/apps/workflow/generate_task_pipeline.py
+50
-48
workflow_based_generate_task_pipeline.py
api/core/app/apps/workflow_based_generate_task_pipeline.py
+4
-0
No files found.
api/core/app/apps/advanced_chat/generate_task_pipeline.py
View file @
100fb0c5
This diff is collapsed.
Click to expand it.
api/core/app/apps/workflow/generate_task_pipeline.py
View file @
100fb0c5
This diff is collapsed.
Click to expand it.
api/core/app/apps/workflow_based_generate_task_pipeline.py
View file @
100fb0c5
...
...
@@ -87,6 +87,7 @@ class WorkflowBasedGenerateTaskPipeline:
workflow_run
.
finished_at
=
datetime
.
utcnow
()
db
.
session
.
commit
()
db
.
session
.
refresh
(
workflow_run
)
db
.
session
.
close
()
return
workflow_run
...
...
@@ -115,6 +116,7 @@ class WorkflowBasedGenerateTaskPipeline:
workflow_run
.
finished_at
=
datetime
.
utcnow
()
db
.
session
.
commit
()
db
.
session
.
refresh
(
workflow_run
)
db
.
session
.
close
()
return
workflow_run
...
...
@@ -185,6 +187,7 @@ class WorkflowBasedGenerateTaskPipeline:
workflow_node_execution
.
finished_at
=
datetime
.
utcnow
()
db
.
session
.
commit
()
db
.
session
.
refresh
(
workflow_node_execution
)
db
.
session
.
close
()
return
workflow_node_execution
...
...
@@ -205,6 +208,7 @@ class WorkflowBasedGenerateTaskPipeline:
workflow_node_execution
.
finished_at
=
datetime
.
utcnow
()
db
.
session
.
commit
()
db
.
session
.
refresh
(
workflow_node_execution
)
db
.
session
.
close
()
return
workflow_node_execution
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment