去除启动 docker 的超时

This commit is contained in:
virusdefender
2015-08-15 17:52:07 +08:00
parent b49e571790
commit 397927ef21

View File

@@ -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"]