This commit is contained in:
Qiuzg 2024-11-15 15:45:34 +08:00 committed by GitHub
commit 3e8d908dcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -917,9 +917,11 @@ class DocumentService:
# trigger async task
if document_ids:
document_indexing_task.delay(dataset.id, document_ids)
for dociment_id in document_ids:
document_indexing_task.delay(dataset.id, [dociment_id])
if duplicate_document_ids:
duplicate_document_indexing_task.delay(dataset.id, duplicate_document_ids)
for duplicate_document_id in duplicate_document_ids:
duplicate_document_indexing_task.delay(dataset.id, [duplicate_document_id])
return documents, batch