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:
Felix 2021-05-07 10:21:25 +02:00 committed by GitHub
parent eaf0ba34bd
commit fb102ebe83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 6 deletions

View file

@ -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',