jack 3 달 전
부모
커밋
ac0892d2fe
1개의 변경된 파일0개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 7
      app/tasks/run_task.py

+ 0 - 7
app/tasks/run_task.py

@@ -23,10 +23,3 @@ def run_task(self, run_id: str, token_id: str, stream: bool = False):
     finally:
         session.close()
     return None
-
-
-##统一的错误处理,最后集中到最后无法处理的错误的时候处理
-@celery_app.exception_handler(Exception)
-async def global_exception_handler(exc):
-    print(f"An error occurred: {exc}")
-    return {"message": "Internal server error, please check logs."}