Community Apps
Celery Tasks
Getting Started

Celery Tasks

Celery Tasks Screenshot

Getting Started

Setup the project

Please setup the project by following the instructions from the Getting Started guide.

Bootstrap the Admin Portal App

cd superapp/apps;
django_superapp bootstrap-app \
--template-repo https://github.com/django-superapp/django-superapp-tasks ./tasks;
cd ../../;

Register Celery Tasks

Add the following content into superapp/__init__.py file:

superapp/__init__.py
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from superapp.apps.tasks.celery_entrypoint import celery_app
 
__all__ = ('celery_app',)