"""
Module contain celery app setup
"""

from __future__ import absolute_import
import os

from celery import Celery

from app import settings

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')

app = Celery('app',  broker=settings.CELERY_BROKER_URL)
app.config_from_object('django.conf:settings', namespace='CELERY')
app.conf.task_routes = settings.CELERY_TASK_ROUTES
app.autodiscover_tasks()
