MOD:进程异常退出问题
Showing
1 changed file
with
6 additions
and
6 deletions
... | @@ -1344,8 +1344,8 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1344,8 +1344,8 @@ class Command(BaseCommand, LoggerMixin): |
1344 | except Exception as e: | 1344 | except Exception as e: |
1345 | self.online_log.error('{0} [process error (get doc info out)] [error={1}]'.format( | 1345 | self.online_log.error('{0} [process error (get doc info out)] [error={1}]'.format( |
1346 | self.log_base, traceback.format_exc())) | 1346 | self.log_base, traceback.format_exc())) |
1347 | error_list.append(1) | 1347 | # error_list.append(1) |
1348 | return | 1348 | # return |
1349 | else: | 1349 | else: |
1350 | doc_data_path = os.path.join(self.data_dir, business_type, consts.TMP_DIR_NAME, str(doc.id)) | 1350 | doc_data_path = os.path.join(self.data_dir, business_type, consts.TMP_DIR_NAME, str(doc.id)) |
1351 | os.makedirs(doc_data_path, exist_ok=True) | 1351 | os.makedirs(doc_data_path, exist_ok=True) |
... | @@ -1502,8 +1502,8 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1502,8 +1502,8 @@ class Command(BaseCommand, LoggerMixin): |
1502 | except Exception as e: | 1502 | except Exception as e: |
1503 | self.online_log.error('{0} [process error (db save)] [error={1}]'.format( | 1503 | self.online_log.error('{0} [process error (db save)] [error={1}]'.format( |
1504 | self.log_base, traceback.format_exc())) | 1504 | self.log_base, traceback.format_exc())) |
1505 | error_list.append(1) | 1505 | # error_list.append(1) |
1506 | return | 1506 | # return |
1507 | else: # e-contract or or e-fsm-contract or e-hmh | 1507 | else: # e-contract or or e-fsm-contract or e-hmh |
1508 | try: | 1508 | try: |
1509 | # pdf下载 处理 图片存储 识别 | 1509 | # pdf下载 处理 图片存储 识别 |
... | @@ -1645,8 +1645,8 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1645,8 +1645,8 @@ class Command(BaseCommand, LoggerMixin): |
1645 | except Exception as e: | 1645 | except Exception as e: |
1646 | self.online_log.error('{0} [process error (db save)] [error={1}]'.format( | 1646 | self.online_log.error('{0} [process error (db save)] [error={1}]'.format( |
1647 | self.e_log_base, traceback.format_exc())) | 1647 | self.e_log_base, traceback.format_exc())) |
1648 | error_list.append(1) | 1648 | # error_list.append(1) |
1649 | return | 1649 | # return |
1650 | 1650 | ||
1651 | def img_2_ocr_1(self, img_queue, todo_count_dict, res_dict, finish_queue, lock, url, error_list): | 1651 | def img_2_ocr_1(self, img_queue, todo_count_dict, res_dict, finish_queue, lock, url, error_list): |
1652 | while len(error_list) == 0 or not img_queue.empty(): | 1652 | while len(error_list) == 0 or not img_queue.empty(): | ... | ... |
-
Please register or sign in to post a comment