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
6a562432
authored
2024-09-25 19:10:20 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ADD:log
1 parent
7653f384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
6a56243
...
...
@@ -1694,11 +1694,12 @@ class Command(BaseCommand, LoggerMixin):
self
.
log_base
,
img_path
,
traceback
.
format_exc
()))
def
res_2_wb
(
self
,
res_dict
,
img_queue
,
finish_queue
,
error_list
):
self
.
online_log
.
info
(
'{0} [res_2_wb] [get task] [queue running] [finish_queue_size={1}]'
.
format
(
self
.
log_base
,
finish_queue
.
qsize
()))
while
len
(
error_list
)
==
0
or
not
img_queue
.
empty
()
or
not
finish_queue
.
empty
():
try
:
task_str
=
finish_queue
.
get
(
block
=
False
)
except
Exception
as
e
:
#
self.online_log.info('{0} [res_2_wb] [queue empty]'.format(self.log_base))
self
.
online_log
.
info
(
'{0} [res_2_wb] [queue empty]'
.
format
(
self
.
log_base
))
time
.
sleep
(
self
.
sleep_time_task_get
)
continue
else
:
...
...
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