f2d23535 by 冯轩

Merge branch 'feature/CHINARPA-5155' into feature/uat-tmp

2 parents 3b339d94 ef086ea7
...@@ -3668,6 +3668,8 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res ...@@ -3668,6 +3668,8 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
3668 } 3668 }
3669 } 3669 }
3670 try: 3670 try:
3671 compare_log.info('{0} [SE] [cms sleep 10] [entity={1}] [id={2}] '.format(log_base, application_entity, application_id))
3672 time.sleep(10)
3671 response = cms.send(data) # interface_report ocr to cms 3673 response = cms.send(data) # interface_report ocr to cms
3672 except Exception as e: 3674 except Exception as e:
3673 is_success = False 3675 is_success = False
...@@ -3745,17 +3747,15 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_ ...@@ -3745,17 +3747,15 @@ def compare_thread(application_id, application_entity, uniq_seq, ocr_res_id, is_
3745 '[is_cms={6}]'.format(log_base, application_entity, application_id, uniq_seq, ocr_res_id, 3747 '[is_cms={6}]'.format(log_base, application_entity, application_id, uniq_seq, ocr_res_id,
3746 is_ca, is_cms)) 3748 is_ca, is_cms))
3747 3749
3748 # 查看此订单号下是否有未完成的文件,如果有,等3分钟 3750 # 查看此订单号下是否有未完成的文件,如果有,等1分钟
3749 doc_wait_file_class = HILDoc if application_entity == consts.HIL_PREFIX else AFCDoc 3751 doc_wait_file_class = HILDoc if application_entity == consts.HIL_PREFIX else AFCDoc
3750 doc_wait_file_result = doc_wait_file_class.objects.filter(application_id=application_id, status=1).first() 3752 doc_wait_file_result = doc_wait_file_class.objects.filter(application_id=application_id, status=1).first()
3751 compare_log.info('111111') 3753 compare_log.info('doc_wait_file_result:',doc_wait_file_result)
3752 compare_log.info(doc_wait_file_result) 3754 compare_log.info('{0} [comparison unfinished file check] [entity={1}] [id={2}] [doc_wait_file_result={3}]'.format(log_base, application_entity, application_id, doc_wait_file_result))
3753 if doc_wait_file_result is not None: 3755 if doc_wait_file_result is not None:
3754 compare_log.info('222222') 3756 compare_log.info('{0} [comparison unfinished file wait 180s start] [entity={1}] [id={2}] [doc_id={3}]'.format(log_base, application_entity, application_id, doc_wait_file_result.id))
3755 compare_log.info('{0} [comparison unfinished file wait 180s start] [entity={1}] [id={2}] [doc_id={3}]'.format(log_base, application_entity, application_id, '111'))
3756 time.sleep(60) 3757 time.sleep(60)
3757 compare_log.info('333333') 3758 compare_log.info('{0} [comparison unfinished file wait 180s end] [entity={1}] [id={2}] [doc_id={3}]'.format(log_base, application_entity, application_id, doc_wait_file_result.id))
3758 compare_log.info('{0} [comparison unfinished file wait 180s end] [entity={1}] [id={2}] [doc_id={3}]'.format(log_base, application_entity, application_id, '111'))
3759 3759
3760 3760
3761 # 根据application_id查找最新的比对信息,如果没有,结束 3761 # 根据application_id查找最新的比对信息,如果没有,结束
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!