fix celery job not closed issue (#19268)

This commit is contained in:
Jyong 2025-05-30 14:42:47 +08:00 committed by GitHub
commit fb12a3033d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -73,6 +73,6 @@ def document_indexing_update_task(dataset_id: str, document_id: str):
except DocumentIsPausedError as ex:
logging.info(click.style(str(ex), fg="yellow"))
except Exception:
pass
logging.exception("document_indexing_update_task failed, document_id: {}".format(document_id))
finally:
db.session.close()