gvaweb/gvaweb/webtasks/celery.py
Jan Dittberner 3b05272254 Move code from gvaweb to webtasks
This change allows celery to find its tasks under the expected webtasks
namespace.
2020-03-03 15:23:54 +01:00

14 lines
298 B
Python

"""
This module defines the Celery_ app for gvaweb.
.. _Celery: http://www.celeryproject.org/
"""
from celery import Celery
#: The Celery application
app = Celery("webtasks")
app.config_from_object("webtasks.settings", namespace="CELERY")
app.autodiscover_tasks(["webtasks.tasks"], force=True)