Merge branch 'feature/page_limit' into feature/0611
Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment