fix: Infinite loop increases maximum loop count limit

This commit is contained in:
liqiang-fit2cloud 2025-09-23 17:13:49 +08:00
parent cc0cde929a
commit 6a9b59163c
2 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,7 @@ from common.handle.impl.response.loop_to_response import LoopToResponse
from maxkb.const import CONFIG
from django.utils.translation import gettext as _
max_loop_count = int((CONFIG.get("MAX_LOOP_COUNT") or 1000))
max_loop_count = int(CONFIG.get("WORKFLOW_LOOP_NODE_MAX_LOOP_COUNT", 500))
def _is_interrupt_exec(node, node_variable: Dict, workflow_variable: Dict):

View File

@ -44,7 +44,6 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
MAXKB_LOCAL_MODEL_HOST=127.0.0.1 \
MAXKB_LOCAL_MODEL_PORT=11636 \
MAXKB_LOCAL_MODEL_PROTOCOL=http \
MAXKB_MAX_LOOP_COUNT=1000 \
PIP_TARGET=/opt/maxkb/python-packages