Spaces:
Runtime error
Runtime error
Update execute.py
Browse files- execute.py +2 -1
execute.py
CHANGED
@@ -36,7 +36,8 @@ def check_correctness(check_program, output, timeout, task_id, completion_id):
|
|
36 |
:param completion_id: an optional completion ID so we can match
|
37 |
the results later even if execution finishes asynchronously.
|
38 |
"""
|
39 |
-
|
|
|
40 |
unsafe_execute(check_program, output, result, timeout)
|
41 |
|
42 |
if not result:
|
|
|
36 |
:param completion_id: an optional completion ID so we can match
|
37 |
the results later even if execution finishes asynchronously.
|
38 |
"""
|
39 |
+
manager = multiprocessing.Manager()
|
40 |
+
result = manager.list()
|
41 |
unsafe_execute(check_program, output, result, timeout)
|
42 |
|
43 |
if not result:
|