Code Execution
Resource Limits
Code execution resource limits and sandboxing defaults
Execution environment limitations
Your code only has access to the input data you provide.
You can provide command-line arguments and environment variables, as well as
files and stdin
.
Output files are not yet supported. To get output from your script you can
write to stdout
and stderr
or send data over the network via
HTTP.
Each interpreter has access to its language’s standard library. Customization of third-party packages is currently only supported for Python.
There is currently no support for alternative interpreter versions.
See the Python, JavaScript, Ruby and PHP interpreter pages for additional information regarding interpreter-specific limitations.
Quotas
Resource | Quota |
---|---|
Input code size | 1MiB |
Size of stdin | 10MiB |
Size of stdout | 20MiB |
Size of stderr | 10MiB |
Number of environment variables | 100 |
Environment variable key size | 4KiB |
Environment variable value size | 100KiB |
Number of arguments | 100 |
Argument size | 100KiB |
Execution duration | 30 seconds |
Memory consumption | 128Mib |