判题暂时可以跑起来了,真要被自己蠢哭了
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# coding=utf-8
|
||||
from __future__ import absolute_import
|
||||
from celery import Celery
|
||||
from .settings import redis_config
|
||||
|
||||
app = Celery("judge", broker="redis://localhost:6379/0", include=["judger_controller.tasks"])
|
||||
app = Celery("judge", broker="redis://" +
|
||||
redis_config["host"] + ":" +
|
||||
str(redis_config["port"]) +
|
||||
"/" + str(redis_config["db"]),
|
||||
include=["judger_controller.tasks"])
|
||||
|
||||
Reference in New Issue
Block a user