mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修改文档向量化重试,文档状态处理 (#373)
This commit is contained in:
parent
c1b6ec630c
commit
77d71f95a3
|
|
@ -387,6 +387,9 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||
{})
|
||||
|
||||
else:
|
||||
if document.status != Status.embedding.value:
|
||||
document.status = Status.embedding
|
||||
document.save()
|
||||
ListenerManagement.embedding_by_document_signal.send(document_id)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue