Skip to content

Celery#

1. Installed apps#

Add django_user_trace.contrib.celery alongside celery to your INSTALLED_APPS Django setting:

INSTALLED_APPS = [
  # ...
  "celery",
  "django_user_trace",  # https://github.com/axieum/django-user-trace
  "django_user_trace.contrib.celery",#(1)!
]
  1. The Django app will register receivers against Celery's signals. It will copy the captured user context into new task's headers.

Last update: 2023-07-02
Created: 2023-07-02