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
f6883dc4
authored
2025-01-10 11:49:30 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
FIX
1 parent
8c434fbc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
f6883dc
...
...
@@ -3669,10 +3669,10 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
compare_log
.
info
(
'{0} [SE] [cms sleep start] [entity={1}] [id={2}] '
.
format
(
log_base
,
application_entity
,
application_id
))
# 实时查询延迟时间
cms_delay_time_config
=
Configs
.
objects
.
filter
(
id
=
5
)
.
first
()
if
cms_delay_time_config
is
None
or
cms_delay_time
is
None
or
not
cms_delay_time
.
isdigit
():
cms_delay_time
=
0
else
:
if
cms_delay_time_config
is
not
None
and
cms_delay_time_config
.
value
is
not
None
and
cms_delay_time_config
.
value
.
isdigit
():
cms_delay_time
=
cms_delay_time_config
.
value
else
:
cms_delay_time
=
0
compare_log
.
info
(
'cms_delay_time:{0}'
.
format
(
cms_delay_time
))
time
.
sleep
(
int
(
cms_delay_time
))
compare_log
.
info
(
'{0} [SE] [cms sleep end] [entity={1}] [id={2}] '
.
format
(
log_base
,
application_entity
,
application_id
))
...
...
@@ -3718,14 +3718,10 @@ def fsm_compare_thread(application_id, application_entity, uniq_seq, ocr_res_id,
# 实时查询延迟时间
delay_time_config
=
Configs
.
objects
.
filter
(
id
=
4
)
.
first
()
if
delay_time_config
is
not
None
and
delay_time_config
.
value
if
delay_time_config
is
None
:
delay_time
=
0
else
:
if
delay_time_config
is
not
None
and
delay_time_config
.
value
is
not
None
and
delay_time_config
.
value
.
isdigit
():
delay_time
=
delay_time_config
.
value
if
delay_time
is
None
or
not
delay_time
.
isdigit
():
delay_time
=
0
else
:
delay_time
=
0
compare_log
.
info
(
'delay_time:{0}'
.
format
(
delay_time
))
# 查看此订单号下是否有未完成的文件,如果有,等1分钟
...
...
@@ -3783,10 +3779,10 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_
is_ca
,
is_cms
))
# 实时查询延迟时间
delay_time_config
=
Configs
.
objects
.
filter
(
id
=
4
)
.
first
()
if
delay_time_config
is
None
or
delay_time
is
None
or
not
delay_time
.
isdigit
():
delay_time
=
0
else
:
if
delay_time_config
is
not
None
and
delay_time_config
.
value
is
not
None
and
delay_time_config
.
value
.
isdigit
():
delay_time
=
delay_time_config
.
value
else
:
delay_time
=
0
compare_log
.
info
(
'delay_time:{0}'
.
format
(
delay_time
))
# 查看此订单号下是否有未完成的文件,如果有,等1分钟
...
...
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