Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
funasr_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5cc8ecd6
authored
Mar 21, 2024
by
‘chizw’
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]数据库连接池优化
1 parent
5d9ae2ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mysql_service/funasr_db.py
mysql_service/funasr_db.py
View file @
5cc8ecd
...
@@ -49,5 +49,5 @@ def select_ali_asr_model_res(task_id: str):
...
@@ -49,5 +49,5 @@ def select_ali_asr_model_res(task_id: str):
def
select_ali_asr_model_wait
():
def
select_ali_asr_model_wait
():
select_sql
=
(
select_sql
=
(
f
"select id,task_id,file_url,task_status,output_data from ali_asr_model_res aamr where aamr.del_flag = 0 and "
f
"select id,task_id,file_url,task_status,output_data from ali_asr_model_res aamr where aamr.del_flag = 0 and "
f
"aamr.output_data is null and aamr.task_status
=
%
s
;"
)
f
"aamr.output_data is null and aamr.task_status
!= 1
;"
)
return
pool
.
select_all
(
select_sql
,
0
)
return
pool
.
select_all
(
select_sql
,
1
)
Write
Preview
Markdown
is supported
Attach a file
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 post a comment