mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
修复 celery 启动 docker 的时候 cannot enable tty mode on non tty input 的问题
This commit is contained in:
parent
3d01918489
commit
878d71f60e
@ -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/ " \
|
||||||
|
Loading…
Reference in New Issue
Block a user