CodeTheChangeUBC/reBOOT

View on GitHub
reboot/celery.py

Summary

Maintainability
A
0 mins
Test Coverage
from celery import Celery
from django.conf import settings
import os

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

app = Celery()
app.config_from_object('reboot.celeryconfig')

app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)