修复 celery 启动 docker 的时候 cannot enable tty mode on non tty input 的问题

This commit is contained in:
virusdefender 2015-09-17 11:18:38 +08:00
parent 3d01918489
commit 878d71f60e

View File

@ -11,7 +11,7 @@ from settings import docker_config, source_code_dir, test_case_dir, log_dir, sub
@app.task @app.task
def judge(submission_id, time_limit, memory_limit, test_case_id): def judge(submission_id, time_limit, memory_limit, test_case_id):
try: try:
command = "%s run -t -i --privileged --rm " \ command = "%s run --privileged --rm " \
"--link mysql " \ "--link mysql " \
"-v %s:/var/judger/test_case/ " \ "-v %s:/var/judger/test_case/ " \
"-v %s:/var/judger/code/ " \ "-v %s:/var/judger/code/ " \