Skip to content

Commit 9db2f0f

Browse files
committed
fix: Supply remaining process limit for codejail
- Specify `FSIZE` so that codejail executions can write a small amount (default is no writing to disk at all) - Move `REALTIME` up to be next to `CPU`
1 parent 8bf42bc commit 9db2f0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py_configuration_files/codejail.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
'limits': {
2222
# CPU-seconds
2323
'CPU': 3,
24-
# 100 MiB memory
25-
'VMEM': 100 * 1024 * 1024,
2624
# Clock seconds
2725
'REALTIME': 3,
26+
# 100 MiB memory
27+
'VMEM': 100 * 1024 * 1024,
28+
# 1 MB file write limit
29+
'FSIZE': 1 * 1024 * 1024,
2830
},
2931
}

0 commit comments

Comments
 (0)