From ab492d1ec4adf0819d95c59a789653bc33908c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E5=AE=87=E4=BD=B3?= Date: Tue, 17 Jun 2025 14:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Merge remote-tracking branch 'origin/main' into feature/cluster-gemini * FIX 修复webhook导致modal状态无法正常透传问题 * Merge branch 'main' into cluster-gemini * PERF 尝试修复gemini推理超出思考token上限的问题 --------- Merge request URL: https://g-ldyi2063.coding.net/p/dev/d/modalDeploy/git/merge/4812 Co-authored-by: 康宇佳 --- src/BowongModalFunctions/utils/SentryUtils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/BowongModalFunctions/utils/SentryUtils.py b/src/BowongModalFunctions/utils/SentryUtils.py index 159c37b..5e2703b 100644 --- a/src/BowongModalFunctions/utils/SentryUtils.py +++ b/src/BowongModalFunctions/utils/SentryUtils.py @@ -84,6 +84,7 @@ class SentryUtils: @functools.wraps(func) async def async_wrapper(*args, **kwargs): + excep = None try: result = await func(*args, **kwargs) status = TaskStatus.success @@ -95,6 +96,7 @@ class SentryUtils: code = ErrorCode.BUSINESS_ERROR.value except Exception as e: logger.exception(e) + excep = e result = None status = TaskStatus.failed error = e.message if hasattr(e, 'message') else str(e) @@ -116,6 +118,8 @@ class SentryUtils: error=error, code=code, results=results, )) + if excep: + raise Exception(excep) return result return async_wrapper