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_HOSTshould bestrtype, the default value of which is127.0.0.1JUDGE_REDIS_PORTshould beinttype, the default value of which is6379JUDGE_REDIS_DBshould beinttype, the default value of which is0JUDGE_REDIS_PASSWORDshould bestrtype, the default value of which is ``JUDGE_REDIS_NAMESPACEshould bestrtype, 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_HOSTshould bestrtype, the default value of which is127.0.0.1RESULT_REDIS_PORTshould beinttype, the default value of which is6379RESULT_REDIS_DBshould beinttype, the default value of which is0RESULT_REDIS_PASSWORDshould bestrtype, the default value of which is ``RESULT_REDIS_NAMESPACEshould bestrtype, the default value of which isRESULT
the variable for MySQl, which store the informations of submissions and problems.
MYSQL_HOSTshould bestrtype, the default value of which is127.0.0.1MYSQL_PORTshould beinttype, the default value of which is3306MYSQL_USERshould bestrtype, the default value of which is ``MYSQL_PASSWORDshould bestrtype, the default value of which is ``MYSQL_DATABASEshould bestrtype, the default value of which isjudge
the number of sub thread.
THREAD_NUMshould beinttype, the default value of which is5