Skip to content

Commit 6a9b591

Browse files
fix: Infinite loop increases maximum loop count limit
1 parent cc0cde9 commit 6a9b591

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/application/flow/step_node/loop_node/impl/base_loop_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from maxkb.const import CONFIG
1919
from django.utils.translation import gettext as _
2020

21-
max_loop_count = int((CONFIG.get("MAX_LOOP_COUNT") or 1000))
21+
max_loop_count = int(CONFIG.get("WORKFLOW_LOOP_NODE_MAX_LOOP_COUNT", 500))
2222

2323

2424
def _is_interrupt_exec(node, node_variable: Dict, workflow_variable: Dict):

installer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ ENV MAXKB_VERSION="${DOCKER_IMAGE_TAG} (build at ${BUILD_AT}, commit: ${GITHUB_C
4444
MAXKB_LOCAL_MODEL_HOST=127.0.0.1 \
4545
MAXKB_LOCAL_MODEL_PORT=11636 \
4646
MAXKB_LOCAL_MODEL_PROTOCOL=http \
47-
MAXKB_MAX_LOOP_COUNT=1000 \
4847
PIP_TARGET=/opt/maxkb/python-packages
4948

5049

0 commit comments

Comments
 (0)