From e31e66aad52a36e297b7705dce1ac56629a0b6e6 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Mon, 22 Feb 2021 22:52:04 +1300 Subject: [PATCH] api: harden file count --- api/src/executor/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/executor/job.js b/api/src/executor/job.js index 7c0e83c..a54bb6c 100644 --- a/api/src/executor/job.js +++ b/api/src/executor/job.js @@ -71,7 +71,7 @@ class Job { async safe_call(file, args, timeout){ return await new Promise((resolve, reject) => { const unshare = config.enable_unshare ? ['unshare','-n','-r'] : []; - const prlimit = ['prlimit','--nproc=64']; + const prlimit = ['prlimit','--nproc=64','--nofile=2048']; const proc_call = [ ...prlimit,