Skip to content

Commit

Permalink
fix: 修复项目重启后,文档状态错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Sep 20, 2024
1 parent 14bf09c commit a04780f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/event/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@


def run():
QuerySet(Document).filter(status__in=[Status.embedding, Status.queue_up]).update(**{'status': Status.error})
# QuerySet(Document).filter(status__in=[Status.embedding, Status.queue_up]).update(**{'status': Status.error})
QuerySet(Model).filter(status=setting.models.Status.DOWNLOAD).update(status=setting.models.Status.ERROR,
meta={'message': "下载程序被中断,请重试"})

0 comments on commit a04780f

Please sign in to comment.