Skip to main content

Task

Adds apply_async_on_commit() and delay_on_commit() methods to Task class.

TransactionTask

Class that has run() wrapped in @transaction.atomic.

from django_celery_task_class import Task
from django_celery_task_class import TransactionTask

class MyTask(Task):
    def run(self, *args, **kwargs):
        pass


class MyTransactionTask(TransactionTask):
    def run(self, *args, **kwargs):
        # Runs inside a @transaction.atomic
        pass


my_task = MyTask.as_task()
my_transaction_task = MyTransactionTask.as_task()

Caller:

from mycode import my_task

my_task.delay_on_commit()
my_transaction_task.apply_async_on_commit()

Metadata

Release files for django-celery-task-class 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-celery-task-class 0.1.0
File Size Uploaded Provenance Actions
django_celery_task_class-0.1.0.tar.gz 1.9 kB Without provenance Details for django_celery_task_class-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-celery-task-class 0.1.0
File Interpreter ABI Platform Actions
django_celery_task_class-0.1.0-py3-none-any.whl Python 3 none any Details for django_celery_task_class-0.1.0-py3-none-any.whl

Total release size: 4.7 kB

Release files / django_celery_task_class-0.1.0.tar.gz

Download URL django_celery_task_class-0.1.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b58dd31e1a3a6faf157e9dd31db1012a098418afd0ddcbe623c9069b57c3963a
BLAKE2b-256 checksum
How to use checksums
a24b19cd6d376153ceb2a1003956a2f3512116aca82a8dff0bee0037cddcdd19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.14 Darwin/24.6.0

Release files / django_celery_task_class-0.1.0-py3-none-any.whl

Download URL django_celery_task_class-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53fde33e79de7c31bfcb8d3b5dd68ae22b3744c10d25accb0a70cca839874863
BLAKE2b-256 checksum
How to use checksums
578cea2a9a041aafce874ae51d64b67ede1c51fa6331812364edde4b940528b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.10.14 Darwin/24.6.0

Security for django-celery-task-class 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page