better logging and reduce long sessions (#3673)

* testing some tweaks based on issues seen with okteto

* shorten session usage in indexing. still a couple of long running sessions to clean up

* merge sessions

* fixing detached session issues

---------

Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app>
This commit is contained in:
rkuo-danswer
2025-01-15 17:27:12 -08:00
committed by GitHub
parent beccca5fa2
commit c9a420ec49
5 changed files with 260 additions and 172 deletions

View File

@ -637,7 +637,8 @@ def validate_indexing_fence(
mark_attempt_failed(
payload.index_attempt_id,
db_session,
"validate_indexing_fence - Canceling index attempt due to missing celery tasks",
f"validate_indexing_fence - Canceling index attempt due to missing celery tasks: "
f"index_attempt={payload.index_attempt_id}",
)
except Exception:
logger.exception(