fix status
Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment