We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bfe400 commit 94e60b0Copy full SHA for 94e60b0
apps/common/utils/tool_code.py
@@ -254,7 +254,7 @@ def _exec_sandbox(self, _code):
254
if proc.poll() is None: #如果仍未终止,强制终止
255
os.killpg(pgid, signal.SIGKILL)
256
proc.wait()
257
- raise Exception(_("Process execution timed out.")) # 执行超时,到了MAXKB_SANDBOX_PYTHON_PROCESS_TIMEOUT_SECONDS限制
+ raise Exception(_(f"Process execution timed out after {self.process_timeout_seconds} seconds."))
258
259
def validate_mcp_transport(self, code_str):
260
servers = json.loads(code_str)
0 commit comments