Skip to content

Commit

Permalink
fix: 修复迁移文档分段数没有重置 (1Panel-dev#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Dec 4, 2024
1 parent f945141 commit a71adf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/dataset/serializers/document_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ def migrate(self, with_valid=True):
ListenerManagement.update_status(QuerySet(Paragraph).filter(document_id__in=document_id_list),
TaskType.EMBEDDING,
State.PENDING)
ListenerManagement.get_aggregation_document_status_by_query_set(
QuerySet(Document).filter(id__in=document_id_list))()
embedding_by_document_list.delay(document_id_list, model_id)
else:
update_embedding_dataset_id(pid_list, target_dataset_id)
Expand Down

0 comments on commit a71adf1

Please sign in to comment.