delete segment not commit (#309)

This commit is contained in:
Jyong
2023-06-06 23:16:51 +08:00
committed by GitHub
parent 2056093855
commit 35a2beb195
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ def document_indexing_update_task(dataset_id: str, document_id: str):
for segment in segments:
db.session.delete(segment)
db.session.commit()
end_at = time.perf_counter()
logging.info(
click.style('Cleaned document when document update data source or process rule: {} latency: {}'.format(document_id, end_at - start_at), fg='green'))