mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 12:09:31 +08:00
Enhance: localhost:9385 -> sandbox-executor-manager:9385 (#17414)
This commit is contained in:
@@ -35,7 +35,7 @@ func TestValidateSystemSettingValue(t *testing.T) {
|
||||
{name: "bool accepts true", dataType: "bool", value: "true"},
|
||||
{name: "bool accepts false", dataType: "bool", value: "false"},
|
||||
{name: "bool rejects non bool", dataType: "bool", value: "yes", wantError: true},
|
||||
{name: "json accepts object", dataType: "json", value: `{"endpoint":"http://localhost:9385"}`},
|
||||
{name: "json accepts object", dataType: "json", value: `{"endpoint":"http://sandbox-executor-manager:9385"}`},
|
||||
{name: "json rejects invalid", dataType: "json", value: "{", wantError: true},
|
||||
{name: "unknown type rejects", dataType: "float", value: "1.2", wantError: true},
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ import (
|
||||
// selfManagedDefaultEndpoint is the canonical executor_manager
|
||||
// endpoint baked into the Python side. Operators override via
|
||||
// SANDBOX_EXECUTOR_MANAGER_URL.
|
||||
const selfManagedDefaultEndpoint = "http://localhost:9385"
|
||||
const selfManagedDefaultEndpoint = "http://sandbox-executor-manager:9385"
|
||||
|
||||
// SelfManagedProvider is the Go port of
|
||||
// `agent/sandbox/providers/self_managed.py::SelfManagedProvider`.
|
||||
|
||||
@@ -27,7 +27,7 @@ class SandboxProvider(ABC):
|
||||
|
||||
| Provider | File | Backend |
|
||||
|----------|------|---------|
|
||||
| `SelfManagedProvider` | `self_managed.py` | HTTP at `localhost:9385` (the `executor_manager`, which runs a Docker pool with gVisor) |
|
||||
| `SelfManagedProvider` | `self_managed.py` | HTTP at `sandbox-executor-manager:9385` (the `executor_manager`, which runs a Docker pool with gVisor) |
|
||||
| `AliyunCodeInterpreterProvider` | `aliyun_codeinterpreter.py` | Alibaba Cloud sandbox (uses `agentrun` SDK / Function Compute) |
|
||||
| `E2BProvider` | `e2b.py` | e2b cloud sandbox (SaaS) |
|
||||
|
||||
@@ -94,7 +94,7 @@ Cons
|
||||
|
||||
Read the three provider implementations and write Go equivalents:
|
||||
|
||||
- `SelfManagedProvider` → Go HTTP client to `localhost:9385`
|
||||
- `SelfManagedProvider` → Go HTTP client to `sandbox-executor-manager:9385`
|
||||
(the executor_manager). Smallest of the three.
|
||||
- `AliyunCodeInterpreterProvider` → Go reimplementation of the
|
||||
`agentrun` SDK client. ~Vendor SDK surface to maintain.
|
||||
|
||||
Reference in New Issue
Block a user