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
f2d23535
authored
2024-11-25 15:54:59 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-5155' into feature/uat-tmp
2 parents
3b339d94
ef086ea7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
f2d2353
...
...
@@ -3668,6 +3668,8 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
}
}
try
:
compare_log
.
info
(
'{0} [SE] [cms sleep 10] [entity={1}] [id={2}] '
.
format
(
log_base
,
application_entity
,
application_id
))
time
.
sleep
(
10
)
response
=
cms
.
send
(
data
)
# interface_report ocr to cms
except
Exception
as
e
:
is_success
=
False
...
...
@@ -3745,17 +3747,15 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_
'[is_cms={6}]'
.
format
(
log_base
,
application_entity
,
application_id
,
uniq_seq
,
ocr_res_id
,
is_ca
,
is_cms
))
# 查看此订单号下是否有未完成的文件,如果有,等
3
分钟
# 查看此订单号下是否有未完成的文件,如果有,等
1
分钟
doc_wait_file_class
=
HILDoc
if
application_entity
==
consts
.
HIL_PREFIX
else
AFCDoc
doc_wait_file_result
=
doc_wait_file_class
.
objects
.
filter
(
application_id
=
application_id
,
status
=
1
)
.
first
()
compare_log
.
info
(
'
111111'
)
compare_log
.
info
(
doc_wait_file_result
)
compare_log
.
info
(
'
doc_wait_file_result:'
,
doc_wait_file_result
)
compare_log
.
info
(
'{0} [comparison unfinished file check] [entity={1}] [id={2}] [doc_wait_file_result={3}]'
.
format
(
log_base
,
application_entity
,
application_id
,
doc_wait_file_result
)
)
if
doc_wait_file_result
is
not
None
:
compare_log
.
info
(
'222222'
)
compare_log
.
info
(
'{0} [comparison unfinished file wait 180s start] [entity={1}] [id={2}] [doc_id={3}]'
.
format
(
log_base
,
application_entity
,
application_id
,
'111'
))
compare_log
.
info
(
'{0} [comparison unfinished file wait 180s start] [entity={1}] [id={2}] [doc_id={3}]'
.
format
(
log_base
,
application_entity
,
application_id
,
doc_wait_file_result
.
id
))
time
.
sleep
(
60
)
compare_log
.
info
(
'333333'
)
compare_log
.
info
(
'{0} [comparison unfinished file wait 180s end] [entity={1}] [id={2}] [doc_id={3}]'
.
format
(
log_base
,
application_entity
,
application_id
,
'111'
))
compare_log
.
info
(
'{0} [comparison unfinished file wait 180s end] [entity={1}] [id={2}] [doc_id={3}]'
.
format
(
log_base
,
application_entity
,
application_id
,
doc_wait_file_result
.
id
))
# 根据application_id查找最新的比对信息,如果没有,结束
...
...
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