fix celery job not closed issue (#19268)

This commit is contained in:
Jyong
2025-05-30 14:42:47 +08:00
committed by GitHub
parent a6ea15e63c
commit fb12a3033d
7 changed files with 7 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ def retry_document_indexing_task(dataset_id: str, document_ids: list[str]):
db.session.commit()
logging.info(click.style(str(ex), fg="yellow"))
redis_client.delete(retry_indexing_cache_key)
pass
logging.exception("retry_document_indexing_task failed, document_id: {}".format(document_id))
finally:
db.session.close()
end_at = time.perf_counter()