mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
18 lines
575 B
Python
18 lines
575 B
Python
# coding=utf-8
|
||
"""
|
||
@project: maxkb
|
||
@Author:虎
|
||
@file: __init__.py
|
||
@date:2023/11/10 10:43
|
||
@desc:
|
||
"""
|
||
import setting.models
|
||
from setting.models import Model
|
||
from .listener_manage import *
|
||
|
||
|
||
def run():
|
||
# 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': "下载程序被中断,请重试"})
|