Skip to content

Commit

Permalink
fix: 修改文档向量化重试,文档状态处理 (1Panel-dev#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed May 7, 2024
1 parent c1b6ec6 commit 77d71f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/dataset/serializers/document_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ def refresh(self, with_valid=True):
{})

else:
if document.status != Status.embedding.value:
document.status = Status.embedding
document.save()
ListenerManagement.embedding_by_document_signal.send(document_id)
return True

Expand Down

0 comments on commit 77d71f9

Please sign in to comment.