rpc 通信和判题初步测试通过;判题服务器不再依赖 redis 和 mysql。

This commit is contained in:
virusdefender
2015-11-29 21:29:26 +08:00
parent 236102b6ac
commit 3311a4c899
15 changed files with 96 additions and 42 deletions

View File

@@ -22,6 +22,15 @@ if ENV == "local":
elif ENV == "server":
from .server_settings import *
import djcelery
djcelery.setup_loader()
BROKER_BACKEND = "redis"
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -51,9 +60,12 @@ INSTALLED_APPS = (
'mq',
'contest',
'mail',
'judge',
'judge_dispatcher',
'django_extensions',
'rest_framework',
'djcelery',
)
if DEBUG: