From a03b359817ea532005d0c4d6aadf8a63ae906a47 Mon Sep 17 00:00:00 2001 From: Nikolay Dimitrov Date: Fri, 28 Oct 2016 00:47:49 +0300 Subject: [PATCH] Fork bomb prevention for #3 --- django/tasks/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/tasks/tasks.py b/django/tasks/tasks.py index 0f5a0c6..e340f0f 100644 --- a/django/tasks/tasks.py +++ b/django/tasks/tasks.py @@ -66,6 +66,7 @@ def __init__(self, docker_image, input_file): mem_limit="100M", memswap_limit="100M", shm_size="100M", + kernel_memory="50M", pids_limit=100, ) )