这是为了能以root身份运行celery[CI SKIP]
This commit is contained in:
@@ -5,3 +5,5 @@ from .settings import redis_config
|
|||||||
|
|
||||||
app = Celery("judge", broker='redis://%s:%s/%s' % (redis_config["host"], redis_config["port"], redis_config["db"]),
|
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
|
||||||
Reference in New Issue
Block a user