From fb6da6948817b8724e4be3034ebe01544ced579d Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Sat, 15 Feb 2025 11:18:28 +0800 Subject: [PATCH] =?UTF-8?q?2.15=20=E7=A1=AE=E8=AE=A4=E9=9D=9E=E6=88=AA?= =?UTF-8?q?=E5=8F=96=E6=B3=84=E6=BC=8F=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_app/routes/test_zbparse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flask_app/routes/test_zbparse.py b/flask_app/routes/test_zbparse.py index e88abd7..8d7dcff 100644 --- a/flask_app/routes/test_zbparse.py +++ b/flask_app/routes/test_zbparse.py @@ -4,12 +4,14 @@ from flask import Blueprint, Response, stream_with_context, current_app, jsonify import json import time +from flask_app.ConnectionLimiter import require_execution_timeout from flask_app.routes.utils import validate_and_setup_logger test_zbparse_bp = Blueprint('test_zbparse', __name__) @test_zbparse_bp.route('/api/test_zbparse', methods=['POST']) @validate_and_setup_logger +@require_execution_timeout(timeout=1800) def test_zbparse(): try: return Response(stream_with_context(test_process_and_stream()), content_type='text/event-stream')