This document describes the current stable version of Celery (5.4). For development docs, go here.


Added in version 5.4.

API Reference

class celery.contrib.django.task.DjangoTask[source]

Extend the base Task for Django.

Provide a nicer API to trigger tasks at the end of the DB transaction.

apply_async_on_commit(*args, **kwargs) None[source]

Call apply_async() with Django’s on_commit().

delay_on_commit(*args, **kwargs) None[source]

Call delay() with Django’s on_commit().