OnlineJudge/judge/judger_controller/celery.py
2015-08-15 14:50:22 +08:00

11 lines
389 B
Python

# coding=utf-8
from __future__ import absolute_import
from celery import Celery
from .settings import redis_config
app = Celery("judge", broker="redis://" +
redis_config["host"] + ":" +
str(redis_config["port"]) +
"/" + str(redis_config["db"]),
include=["judge.judger_controller.tasks"])