Merge branch 'feature/fsm-full' into 'feature/uat-tmp'
添加fsm 任务 See merge request !8
Showing
1 changed file
with
8 additions
and
3 deletions
... | @@ -43,7 +43,7 @@ from apps.doc.models import ( | ... | @@ -43,7 +43,7 @@ from apps.doc.models import ( |
43 | IDBCRecords, | 43 | IDBCRecords, |
44 | Configs, | 44 | Configs, |
45 | ) | 45 | ) |
46 | from celery_compare.tasks import compare | 46 | from celery_compare.tasks import compare, fsm_compare |
47 | 47 | ||
48 | 48 | ||
49 | class Command(BaseCommand, LoggerMixin): | 49 | class Command(BaseCommand, LoggerMixin): |
... | @@ -2056,8 +2056,13 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -2056,8 +2056,13 @@ class Command(BaseCommand, LoggerMixin): |
2056 | self.log_base, task_str, res_obj.id)) | 2056 | self.log_base, task_str, res_obj.id)) |
2057 | # 触发比对 | 2057 | # 触发比对 |
2058 | try: | 2058 | try: |
2059 | # pass | 2059 | fsm_activited = getattr(res_obj, 'fsm_activited') |
2060 | compare.apply_async((doc.application_id, business_type, None, res_obj.id, | 2060 | if fsm_activited: |
2061 | fsm_compare.apply_async((doc.application_id, business_type, None, res_obj.id, is_ca, True), | ||
2062 | queue='queue_compare') | ||
2063 | else: | ||
2064 | # pass | ||
2065 | compare.apply_async((doc.application_id, business_type, None, res_obj.id, | ||
2061 | is_ca, True), queue='queue_compare') | 2066 | is_ca, True), queue='queue_compare') |
2062 | except Exception as e: | 2067 | except Exception as e: |
2063 | self.online_log.error( | 2068 | self.online_log.error( | ... | ... |
-
Please register or sign in to post a comment