Skip to content

Commit 142c185

Browse files
committed
Set limits again
1 parent 9555c52 commit 142c185

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/controllers/tracers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ const trace = lang => (req, res, next) => {
2020
const containerName = uuid.v4();
2121
let killed = false;
2222
const timer = setTimeout(() => {
23-
/* execute(`docker kill ${containerName}`).then(() => {
23+
execute(`docker kill ${containerName}`).then(() => {
2424
killed = true;
25-
});*/
25+
});
2626
}, timeLimit);
2727
return execute([
2828
'docker run --rm',
2929
`--name=${containerName}`,
3030
'-w=/usr/visualization',
3131
`-v=${tempPath}:/usr/visualization:rw`,
32-
//`-m=${memoryLimit}m`,
32+
`-m=${memoryLimit}m`,
3333
'-e ALGORITHM_VISUALIZER=1',
3434
builder.imageName,
3535
].join(' '), { stdout: null, stderr: null }).catch(error => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy