mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-01 17:36:28 +02:00
Improved memory limits (#248)
* Added optional compile_memory_limit and run_memory_limit parameters * Combined memory limit parameters into one
This commit is contained in:
parent
eaf0ba34bd
commit
fb102ebe83
4 changed files with 65 additions and 6 deletions
|
@ -108,6 +108,18 @@ const options = [
|
|||
default: 1000000, //1MB
|
||||
validators: []
|
||||
},
|
||||
{
|
||||
key: 'compile_memory_limit',
|
||||
desc: 'Max memory usage for compile stage in bytes (set to -1 for no limit)',
|
||||
default: -1, // no limit
|
||||
validators: []
|
||||
},
|
||||
{
|
||||
key: 'run_memory_limit',
|
||||
desc: 'Max memory usage for run stage in bytes (set to -1 for no limit)',
|
||||
default: -1, // no limit
|
||||
validators: []
|
||||
},
|
||||
{
|
||||
key: 'repo_url',
|
||||
desc: 'URL of repo index',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue