Skip to content

Using Celery

The library ships with out-of-the-box support for using both Celery and CeleryBeat. If your Django app uses Celery, then similar to every HTTP view, every celery task has to be bound to a specific tenant's context so that DB queries made from within the task get routed to that particular tenant's database.

This page illustrates the mechanism by which the library achieves this binding for both celery and beat tasks.