ce75072d by 王聪

添加fsm 任务

1 parent ea52342a
...@@ -41,7 +41,7 @@ from apps.doc.models import ( ...@@ -41,7 +41,7 @@ from apps.doc.models import (
41 IDBCRecords, 41 IDBCRecords,
42 Configs, 42 Configs,
43 ) 43 )
44 from celery_compare.tasks import compare 44 from celery_compare.tasks import compare, fsm_compare
45 45
46 46
47 class Command(BaseCommand, LoggerMixin): 47 class Command(BaseCommand, LoggerMixin):
...@@ -2014,6 +2014,11 @@ class Command(BaseCommand, LoggerMixin): ...@@ -2014,6 +2014,11 @@ class Command(BaseCommand, LoggerMixin):
2014 self.log_base, task_str, res_obj.id)) 2014 self.log_base, task_str, res_obj.id))
2015 # 触发比对 2015 # 触发比对
2016 try: 2016 try:
2017 fsm_activited = getattr(res_obj, 'fsm_activited')
2018 if fsm_activited:
2019 fsm_compare.apply_async((doc.application_id, business_type, None, res_obj.id, is_ca, True),
2020 queue='queue_compare')
2021 else:
2017 # pass 2022 # pass
2018 compare.apply_async((doc.application_id, business_type, None, res_obj.id, 2023 compare.apply_async((doc.application_id, business_type, None, res_obj.id,
2019 is_ca, True), queue='queue_compare') 2024 is_ca, True), queue='queue_compare')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!