这是为了能以root身份运行celery[CI SKIP]

This commit is contained in:
esp 2015-09-02 22:26:58 +08:00
parent e4a5e4155b
commit 655b18421e

View File

@ -4,4 +4,6 @@ from celery import Celery
from .settings import redis_config
app = Celery("judge", broker='redis://%s:%s/%s' % (redis_config["host"], redis_config["port"], redis_config["db"]),
include=["judge.judger_controller.tasks"])
include=["judge.judger_controller.tasks"])
platforms.C_FORCE_ROOT =True