mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: Infinite loop increases maximum loop count limit
This commit is contained in:
parent
cc0cde929a
commit
6a9b59163c
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue