Skip to main content

SandboxedConfig

Configuration for a sandboxed task executed via Monty.

Attributes​

AttributeTypeDescription
max_memoryint = 52428800The maximum memory limit in bytes allocated for executing the sandboxed task.
max_stack_depthint = 256The maximum allowed call stack depth for the sandboxed task execution.
timeout_msint = 30000The execution timeout limit in milliseconds for the sandboxed task.
type_checkbool = TrueSpecifies whether type checking should be performed during sandboxed execution.

Constructor​

Signature​

def SandboxedConfig(
max_memory: int = 52428800,
max_stack_depth: int = 256,
timeout_ms: int = 30000,
type_check: bool = True
) -> None

Parameters​

NameTypeDescription
max_memoryint = 52428800Maximum memory allocated for the sandboxed task in bytes (defaults to 50 MB).
max_stack_depthint = 256Maximum stack depth permitted during execution.
timeout_msint = 30000Timeout duration for task execution in milliseconds.
type_checkbool = TrueFlag indicating whether type checking should be performed.