ff199755 by 周伟奇

fix status

1 parent 3d0dc35f
...@@ -638,6 +638,13 @@ class Command(BaseCommand, LoggerMixin): ...@@ -638,6 +638,13 @@ class Command(BaseCommand, LoggerMixin):
638 except Exception as e: 638 except Exception as e:
639 self.online_log.error('{0} [process error (report db save)] [error={1}]'.format( 639 self.online_log.error('{0} [process error (report db save)] [error={1}]'.format(
640 self.log_base, traceback.format_exc())) 640 self.log_base, traceback.format_exc()))
641
642 try:
643 doc.status = DocStatus.PROCESS_FAILED.value
644 doc.save()
645 except Exception as e:
646 self.online_log.error('{0} [process error (db save)] [error={1}]'.format(
647 self.log_base, traceback.format_exc()))
641 else: 648 else:
642 with lock: 649 with lock:
643 todo_count_dict[task_str] = pdf_handler.img_count 650 todo_count_dict[task_str] = pdf_handler.img_count
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!