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