mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-01 17:36:28 +02:00
api: maximum concurrent jobs and potential fix for gcc
This commit is contained in:
parent
1835ab5cab
commit
7313958155
3 changed files with 47 additions and 7 deletions
|
@ -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`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue