This commit is contained in:
Qiuzg 2024-11-15 09:37:33 +09:00 committed by GitHub
commit ff74921282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -916,10 +916,12 @@ class DocumentService:
db.session.commit()
# trigger async task
if document_ids:
document_indexing_task.delay(dataset.id, document_ids)
if duplicate_document_ids:
duplicate_document_indexing_task.delay(dataset.id, duplicate_document_ids)
if document_ids:
for dociment_id in document_ids:
document_indexing_task.delay(dataset.id, [dociment_id])
if duplicate_document_ids:
for duplicate_document_id in duplicate_document_ids:
duplicate_document_indexing_task.delay(dataset.id, [duplicate_document_id])
return documents, batch