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

+3-3
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)