aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--snekbox/utils/timed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snekbox/utils/timed.py b/snekbox/utils/timed.py
index 02388ff..1221df0 100644
--- a/snekbox/utils/timed.py
+++ b/snekbox/utils/timed.py
@@ -29,7 +29,7 @@ def timed(
"""
if kwds is None:
kwds = {}
- with multiprocessing.Pool(1) as pool:
+ with multiprocessing.Pool(1, maxtasksperchild=1) as pool:
result = pool.apply_async(func, args, kwds)
try:
return result.get(timeout)