Atomic transaction aware Celery tasks for Django 1.6+
Project description
django_atomic_celery provides a Django 1.6-1.7 compatible approach to transactionally aware approach to Celery task scheduling.
Installation
To install django_atomic_celery, do yourself a favor and don’t use anything other than pip:
$ pip install django-atomic-celery
Add django_atomic_celery along with its dependency, django_atomic_signals, to the list of installed apps in your settings file:
INSTALLED_APPS = (
'django_atomic_signals',
'django_atomic_celery',
..
)
Usage
Using django_atomic_celery is exactly like using Celery the way you normally would. However, instead of importing Celery’s variant of the task decorator, import it from django_atomic_celery:
from django_atomic_celery import task
@task
def simple_task():
..
@task(ignore_result=True, max_retries=3, default_retry_delay=10)
def retrying_task(arg):
..
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-atomic-celery-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e5d1e901b94720b1314253307c9b343f6f2957a03fa64bc5727ce170b98157 |
|
MD5 | 3125102a40734a902e5f5b82094947e3 |
|
BLAKE2b-256 | ba9afa1c1e6a5b2122f6c709ed3659f9b324cf3ab09357ad5315cd030dc5d104 |