The backend judger for online judge written in Python.
NOTICE: this project is still prototype PLEASE MAKE SURE WHAT HAPPEN ABOUT ANY STEP YOU DO
- Python 2.7 only
- Redis
- Mysql
the variables for judge queue redis, where store submissions which need judging.
JUDGE_REDIS_HOST
should bestr
type, the default value of which is127.0.0.1
JUDGE_REDIS_PORT
should beint
type, the default value of which is6379
JUDGE_REDIS_DB
should beint
type, the default value of which is0
JUDGE_REDIS_PASSWORD
should bestr
type, the default value of which is ``JUDGE_REDIS_NAMESPACE
should bestr
type, the default value of which isJUDGE
the variables for result queue redis, where store the message about judged submissions sent back to frontend.
RESULT_REDIS_HOST
should bestr
type, the default value of which is127.0.0.1
RESULT_REDIS_PORT
should beint
type, the default value of which is6379
RESULT_REDIS_DB
should beint
type, the default value of which is0
RESULT_REDIS_PASSWORD
should bestr
type, the default value of which is ``RESULT_REDIS_NAMESPACE
should bestr
type, the default value of which isRESULT
the variable for MySQl, which store the informations of submissions and problems.
MYSQL_HOST
should bestr
type, the default value of which is127.0.0.1
MYSQL_PORT
should beint
type, the default value of which is3306
MYSQL_USER
should bestr
type, the default value of which is ``MYSQL_PASSWORD
should bestr
type, the default value of which is ``MYSQL_DATABASE
should bestr
type, the default value of which isjudge
the number of sub thread.
THREAD_NUM
should beint
type, the default value of which is5