celery.contrib.django.task¶ Added in version 5.4. API Reference¶ class celery.contrib.django.task.DjangoTask[源代码]¶ 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[源代码]¶ Call apply_async() with Django's on_commit(). delay_on_commit(*args, **kwargs) → None[源代码]¶ Call delay() with Django's on_commit().