8a08f33f by 冯轩

MOD:

1 parent df14bb3c
...@@ -1624,7 +1624,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -1624,7 +1624,7 @@ class Command(BaseCommand, LoggerMixin):
1624 try: 1624 try:
1625 channel, img_path, text_list = img_queue.get(block=False) 1625 channel, img_path, text_list = img_queue.get(block=False)
1626 except Exception as e: 1626 except Exception as e:
1627 # self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base)) 1627 self.online_log.info('{0} [img_2_ocr_1] [queue empty]'.format(self.log_base))
1628 time.sleep(self.sleep_time_img_get) 1628 time.sleep(self.sleep_time_img_get)
1629 continue 1629 continue
1630 else: 1630 else:
...@@ -2463,6 +2463,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -2463,6 +2463,7 @@ class Command(BaseCommand, LoggerMixin):
2463 except Exception as e: 2463 except Exception as e:
2464 self.online_log.error('{0} [process error (pdf & img remove)] [task={1}] [error={2}]'.format( 2464 self.online_log.error('{0} [process error (pdf & img remove)] [task={1}] [error={2}]'.format(
2465 self.log_base, task_str, traceback.format_exc())) 2465 self.log_base, task_str, traceback.format_exc()))
2466 self.online_log.info('{0} [res_2_wb after while] [len(error_list)={1}] [img_queue={2}] [finish_queue={3}]'.format(self.log_base, len(error_list), img_queue.empty(), finish_queue.empty()))
2466 2467
2467 def handle(self, *args, **kwargs): 2468 def handle(self, *args, **kwargs):
2468 db.close_old_connections() 2469 db.close_old_connections()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!