api: maximum concurrent jobs and potential fix for gcc

This commit is contained in:
Thomas Hobson 2021-10-01 20:28:54 +13:00
parent 1835ab5cab
commit 7313958155
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
3 changed files with 47 additions and 7 deletions

View file

@ -114,6 +114,13 @@ const options = [
'https://github.com/engineer-man/piston/releases/download/pkgs/index',
validators: [],
},
{
key: 'max_concurrent_jobs',
desc: 'Maximum number of concurrent jobs to run at one time',
default: 64,
parser: parse_int,
validators: [(x) => x > 0 || `${x} cannot be negative`]
}
];
logger.info(`Loading Configuration from environment`);