Merge branch 'feature/CHINARPA-5155' into feature/uat-tmp
Showing
1 changed file
with
8 additions
and
12 deletions
| ... | @@ -3671,10 +3671,10 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -3671,10 +3671,10 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
| 3671 | compare_log.info('{0} [SE] [cms sleep start] [entity={1}] [id={2}] '.format(log_base, application_entity, application_id)) | 3671 | compare_log.info('{0} [SE] [cms sleep start] [entity={1}] [id={2}] '.format(log_base, application_entity, application_id)) |
| 3672 | # 实时查询延迟时间 | 3672 | # 实时查询延迟时间 |
| 3673 | cms_delay_time_config = Configs.objects.filter(id=5).first() | 3673 | cms_delay_time_config = Configs.objects.filter(id=5).first() |
| 3674 | if cms_delay_time_config is None or cms_delay_time is None or not cms_delay_time.isdigit(): | 3674 | if cms_delay_time_config is not None and cms_delay_time_config.value is not None and cms_delay_time_config.value.isdigit(): |
| 3675 | cms_delay_time = 0 | ||
| 3676 | else: | ||
| 3677 | cms_delay_time = cms_delay_time_config.value | 3675 | cms_delay_time = cms_delay_time_config.value |
| 3676 | else: | ||
| 3677 | cms_delay_time = 0 | ||
| 3678 | compare_log.info('cms_delay_time:{0}'.format(cms_delay_time)) | 3678 | compare_log.info('cms_delay_time:{0}'.format(cms_delay_time)) |
| 3679 | time.sleep(int(cms_delay_time)) | 3679 | time.sleep(int(cms_delay_time)) |
| 3680 | compare_log.info('{0} [SE] [cms sleep end] [entity={1}] [id={2}] '.format(log_base, application_entity, application_id)) | 3680 | compare_log.info('{0} [SE] [cms sleep end] [entity={1}] [id={2}] '.format(log_base, application_entity, application_id)) |
| ... | @@ -3720,14 +3720,10 @@ def fsm_compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, | ... | @@ -3720,14 +3720,10 @@ def fsm_compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, |
| 3720 | 3720 | ||
| 3721 | # 实时查询延迟时间 | 3721 | # 实时查询延迟时间 |
| 3722 | delay_time_config = Configs.objects.filter(id=4).first() | 3722 | delay_time_config = Configs.objects.filter(id=4).first() |
| 3723 | if delay_time_config is not None and delay_time_config.value | 3723 | if delay_time_config is not None and delay_time_config.value is not None and delay_time_config.value.isdigit(): |
| 3724 | if delay_time_config is None: | ||
| 3725 | delay_time = 0 | ||
| 3726 | else: | ||
| 3727 | delay_time = delay_time_config.value | 3724 | delay_time = delay_time_config.value |
| 3728 | if delay_time is None or not delay_time.isdigit(): | ||
| 3729 | delay_time = 0 | ||
| 3730 | else: | 3725 | else: |
| 3726 | delay_time = 0 | ||
| 3731 | compare_log.info('delay_time:{0}'.format(delay_time)) | 3727 | compare_log.info('delay_time:{0}'.format(delay_time)) |
| 3732 | 3728 | ||
| 3733 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 | 3729 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 |
| ... | @@ -3785,10 +3781,10 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_ | ... | @@ -3785,10 +3781,10 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_ |
| 3785 | is_ca, is_cms)) | 3781 | is_ca, is_cms)) |
| 3786 | # 实时查询延迟时间 | 3782 | # 实时查询延迟时间 |
| 3787 | delay_time_config = Configs.objects.filter(id=4).first() | 3783 | delay_time_config = Configs.objects.filter(id=4).first() |
| 3788 | if delay_time_config is None or delay_time is None or not delay_time.isdigit(): | 3784 | if delay_time_config is not None and delay_time_config.value is not None and delay_time_config.value.isdigit(): |
| 3789 | delay_time = 0 | ||
| 3790 | else: | ||
| 3791 | delay_time = delay_time_config.value | 3785 | delay_time = delay_time_config.value |
| 3786 | else: | ||
| 3787 | delay_time = 0 | ||
| 3792 | compare_log.info('delay_time:{0}'.format(delay_time)) | 3788 | compare_log.info('delay_time:{0}'.format(delay_time)) |
| 3793 | 3789 | ||
| 3794 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 | 3790 | # 查看此订单号下是否有未完成的文件,如果有,等1分钟 | ... | ... |
-
Please register or sign in to post a comment