Custom Celery Tasks: including the enqueuing request_id to a task_id in Django

Adrienne Domingus
5 min readAug 22, 2019

Debugging background tasks can be challenging, given they’re not necessarily executed in the order they’re enqueued (assuming you have multiple workers processing them), may be retried if they fail the first time through, and have no direct link to the web request that enqueued them.