Chore : rm dead code detected by pylance (#24588)

This commit is contained in:
Yongtao Huang 2025-08-27 13:19:40 +08:00 committed by GitHub
commit 826f19e968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 1 additions and 25 deletions

View file

@ -24,7 +24,6 @@ def retry_document_indexing_task(dataset_id: str, document_ids: list[str]):
Usage: retry_document_indexing_task.delay(dataset_id, document_ids)
"""
documents: list[Document] = []
start_at = time.perf_counter()
try:
dataset = db.session.query(Dataset).where(Dataset.id == dataset_id).first()