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
ce75072d
authored
2023-01-08 18:16:32 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加fsm 任务
1 parent
ea52342a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
ce75072
...
...
@@ -41,7 +41,7 @@ from apps.doc.models import (
IDBCRecords
,
Configs
,
)
from
celery_compare.tasks
import
compare
from
celery_compare.tasks
import
compare
,
fsm_compare
class
Command
(
BaseCommand
,
LoggerMixin
):
...
...
@@ -2014,8 +2014,13 @@ class Command(BaseCommand, LoggerMixin):
self
.
log_base
,
task_str
,
res_obj
.
id
))
# 触发比对
try
:
# pass
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
fsm_activited
=
getattr
(
res_obj
,
'fsm_activited'
)
if
fsm_activited
:
fsm_compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
is_ca
,
True
),
queue
=
'queue_compare'
)
else
:
# pass
compare
.
apply_async
((
doc
.
application_id
,
business_type
,
None
,
res_obj
.
id
,
is_ca
,
True
),
queue
=
'queue_compare'
)
except
Exception
as
e
:
self
.
online_log
.
error
(
...
...
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