<reponame>aaaimx/covid19-assistant-api
# First steps with Django
# https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

from __future__ import absolute_import
from django.conf import settings
import os
from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')

app = Celery(broker=settings.CELERY_BROKER_URL, backend='amqp://') # conneccion a broker RabbitMQ
app.config_from_object('django.conf:settings')
# app.autodiscover_tasks(settings.INSTALLED_APPS)

if __name__ == '__main__':
    app.start()

# First steps with Django
# https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

from __future__ import absolute_import
from django.conf import settings
import os
from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')

app = Celery(broker=settings.CELERY_BROKER_URL, backend='amqp://') # conneccion a broker RabbitMQ
app.config_from_object('django.conf:settings')
# app.autodiscover_tasks(settings.INSTALLED_APPS)

if __name__ == '__main__':
    app.start()
# First steps with Django # https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html # set the default Django settings module for the 'celery' program. # conneccion a broker RabbitMQ # app.autodiscover_tasks(settings.INSTALLED_APPS)