90962a2e by 周伟奇

Merge branch 'feature/page_limit' into feature/0611

2 parents d77dfabd ff199755
...@@ -628,6 +628,13 @@ class Command(BaseCommand, LoggerMixin): ...@@ -628,6 +628,13 @@ class Command(BaseCommand, LoggerMixin):
628 except Exception as e: 628 except Exception as e:
629 self.online_log.error('{0} [process error (report db save)] [error={1}]'.format( 629 self.online_log.error('{0} [process error (report db save)] [error={1}]'.format(
630 self.log_base, traceback.format_exc())) 630 self.log_base, traceback.format_exc()))
631
632 try:
633 doc.status = DocStatus.PROCESS_FAILED.value
634 doc.save()
635 except Exception as e:
636 self.online_log.error('{0} [process error (db save)] [error={1}]'.format(
637 self.log_base, traceback.format_exc()))
631 else: 638 else:
632 with lock: 639 with lock:
633 todo_count_dict[task_str] = pdf_handler.img_count 640 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!