gvamysql/gvamysql/mysqltasks/celery.py
Jan Dittberner ca0d8451d0 Refactor module structure
Move mysqltasks to top level to keep the task names when using Python3.
2020-03-04 20:08:19 +01:00

16 lines
346 B
Python

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