Show & Tell — Phase 14.2: SandboxRunner architecture and execution backends #389
web3guru888
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SandboxRunner — Component Map
Execution Backend Comparison
resourceulimits + OS processDataclass Hierarchy
preexec_fn— Resource Limits viaresourcestdlibTimeout Enforcement Pattern
batch_run— Concurrency with Partial FailureAll requests run concurrently — a single failure is coerced into an
ExecutionResultwithexit_code=-1, so the rest are unaffected.Prometheus Metrics
sandbox_runs_totalbackend,languagesandbox_timeouts_totalbackendsandbox_errors_totalbackendsandbox_elapsed_secondsbackendsandbox_memory_exceeded_totalbackendPromQL — timeout rate by backend:
PromQL — p95 latency:
Grafana alert:
Open Questions
preexec_fnis POSIX-only. Should we add a Windows fallback usingsubprocess.CREATE_NEW_PROCESS_GROUP+ctypesJob Objects?Discussion thread for Issue #388.
Beta Was this translation helpful? Give feedback.
All reactions