Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9717cceb
authored
2025-02-15 19:33:41 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:max_conn_age,remove queue empty log
1 parent
d4c1a428
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/settings/__init__.py
src/apps/doc/management/commands/ocr_process.py
View file @
9717cce
...
...
@@ -1646,7 +1646,7 @@ class Command(BaseCommand, LoggerMixin):
try
:
channel
,
img_path
,
text_list
=
img_queue
.
get
(
block
=
False
)
except
Exception
as
e
:
self
.
online_log
.
info
(
'{0} [img_2_ocr_1] [queue empty]'
.
format
(
self
.
log_base
))
#
self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base))
time
.
sleep
(
self
.
sleep_time_img_get
)
continue
else
:
...
...
src/settings/__init__.py
View file @
9717cce
...
...
@@ -102,7 +102,7 @@ for db_setting in DATABASES.values():
'driver'
:
'ODBC Driver 17 for SQL Server'
,
'extra_params'
:
"odbc_cursortype=2"
}
db_setting
[
'CONN_MAX_AGE'
]
=
6
0
db_setting
[
'CONN_MAX_AGE'
]
=
0
# set this to False if you want to turn off pyodbc's connection pooling
DATABASE_CONNECTION_POOLING
=
True
...
...
Write
Preview
Styling with
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