Skip to main content

Celery wrapper that delays tasks until the django transaction has committed

Project description

# django-celery-oncommit

Delay all celery tasks until after the current django transaction has committed to prevent race conditions.

See the [django docs]( for more details.

## Usage

`pip install django-celery-oncommit`

In your task file:

from django_celery_oncommit import task

def some_task(with_args):
"""Task that does stuff with objects"""


from mytasks import some_task

def function_used_in_django_code():

Ta da!


* provide a non-transaction-based option `apply_async` for when the user explicity knows how they want to interact with transactions

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-celery-oncommit, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_celery_oncommit-0.0.2-py2-none-any.whl (2.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size django-celery-oncommit-0.0.2.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page