Skip to content

Commit e79bc63

Browse files
committed
fix sandbox limit
1 parent cc94e5c commit e79bc63

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agentscope-runtime"
3-
version = "1.1.1"
3+
version = "1.1.2b1"
44
description = "A production-ready runtime framework for agent applications, providing secure sandboxed execution environments and scalable deployment solutions with multi-framework support."
55
readme = "README.md"
66
requires-python = ">=3.10"

src/agentscope_runtime/sandbox/manager/sandbox_manager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,14 @@ def create(
728728
except Exception:
729729
# ignore broken records
730730
continue
731+
732+
# Check if limit is exceeded
733+
if current >= limit:
734+
logger.warning(
735+
f"Sandbox instance limit reached: "
736+
f"{current}/{limit} active instances",
737+
)
738+
return None
731739
except RuntimeError as e:
732740
logger.warning(str(e))
733741
return None

src/agentscope_runtime/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = "v1.1.1"
2+
__version__ = "v1.1.2b1"

0 commit comments

Comments
 (0)