This commit is contained in:
virusdefender
2015-11-28 20:32:49 +08:00
parent 9cd52115fc
commit d8966ed48a
22 changed files with 117 additions and 189 deletions

16
judge_dispatcher/judge.py Normal file
View File

@@ -0,0 +1,16 @@
# coding=utf-8
import socket
import redis
from .rpc_client import TimeoutServerProxy
from .settings import redis_config
from .models import JudgeServer
class JudgeDispatcher(object):
def __init__(self):
self.redis = redis.StrictRedis(host=redis_config["host"], port=redis_config["port"], db=redis_config["db"])
def judge(self):
pass