From 397927ef21e7b3380f30e24491c402a9d9875af0 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sat, 15 Aug 2015 17:52:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=90=AF=E5=8A=A8=20docker?= =?UTF-8?q?=20=E7=9A=84=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/judger_controller/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/judger_controller/tasks.py b/judge/judger_controller/tasks.py index 3313b52..f918724 100644 --- a/judge/judger_controller/tasks.py +++ b/judge/judger_controller/tasks.py @@ -22,7 +22,7 @@ def judge(submission_id, time_limit, memory_limit, test_case_id): source_code_dir, docker_config["image_name"], submission_id, str(time_limit), str(memory_limit), test_case_id) - subprocess.call(command, timeout=(time_limit / 1000.0 * 10), shell=docker_config["shell"]) + subprocess.call(command, shell=docker_config["shell"]) except Exception as e: connection = pymongo.MongoClient(host=celery_mongodb_config["host"], port=celery_mongodb_config["port"]) collection = connection["oj"]["oj_submission"]