judge: add process limit to setting

This commit is contained in:
undefined committed 2021-09-19 19:29:24 +08:00
1 parent ea427a112a
commit e5a9d6cb0a
5 files changed
+9 -2

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ let config = {
sandbox_host: 'http://localhost:5050',
testcases_max: 100,
total_time_limit: 60,
processLimit: 32,
parallelism: 2,
rerun: 0,
rate: 1,
+1 -1
View File
@@ -27,7 +27,7 @@ function proc({
execute = '',
time = 16000,
memory = parseMemoryMB(getConfig('memoryMax')),
process_limit = 32,
process_limit = getConfig('processLimit'),
stdin = '', copyIn = {}, copyOut = [], copyOutCached = [],
} = {}) {
if (!supportOptional) {