SandboxedConfig
Configuration for a sandboxed task executed via Monty.
Attributes
| Attribute | Type | Description |
|---|---|---|
| max_memory | int = 52428800 | The maximum memory limit in bytes allocated for executing the sandboxed task. |
| max_stack_depth | int = 256 | The maximum allowed call stack depth for the sandboxed task execution. |
| timeout_ms | int = 30000 | The execution timeout limit in milliseconds for the sandboxed task. |
| type_check | bool = True | Specifies 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
| Name | Type | Description |
|---|---|---|
| max_memory | int = 52428800 | Maximum memory allocated for the sandboxed task in bytes (defaults to 50 MB). |
| max_stack_depth | int = 256 | Maximum stack depth permitted during execution. |
| timeout_ms | int = 30000 | Timeout duration for task execution in milliseconds. |
| type_check | bool = True | Flag indicating whether type checking should be performed. |