OnlineJudge/judge/judger_controller/celery.py

10 lines
333 B
Python
Raw Normal View History

# coding=utf-8
from __future__ import absolute_import
2015-09-02 14:59:43 +00:00
from celery import Celery, platforms
from .settings import redis_config
2015-08-15 15:46:25 +00:00
app = Celery("judge", broker='redis://%s:%s/%s' % (redis_config["host"], redis_config["port"], redis_config["db"]),
include=["judge.judger_controller.tasks"])
2015-09-02 14:59:43 +00:00
platforms.C_FORCE_ROOT =True