ADD:测试是否单线程
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -1527,6 +1527,11 @@ class SECMSView(GenericView): | ... | @@ -1527,6 +1527,11 @@ class SECMSView(GenericView): |
1527 | fsm_contract = cms_info.get('FSMContract', False) | 1527 | fsm_contract = cms_info.get('FSMContract', False) |
1528 | is_fsm=1 if fsm_contract else 0 | 1528 | is_fsm=1 if fsm_contract else 0 |
1529 | 1529 | ||
1530 | # 测试是否单线程 | ||
1531 | self.running_log.info('接到请求,准备sleep') | ||
1532 | time.sleep(10) | ||
1533 | self.running_log.info('sleep结束') | ||
1534 | |||
1530 | auto_class = HILAutoSettlement if business_type in consts.HIL_SET else AFCAutoSettlement | 1535 | auto_class = HILAutoSettlement if business_type in consts.HIL_SET else AFCAutoSettlement |
1531 | auto_obj = auto_class.objects.filter(application_id=application_id).first() | 1536 | auto_obj = auto_class.objects.filter(application_id=application_id).first() |
1532 | if is_auto: | 1537 | if is_auto: | ... | ... |
-
Please register or sign in to post a comment