Skip to main content

Celery Batches

https://img.shields.io/pypi/v/celery-batches.svg https://github.com/clokep/celery-batches/actions/workflows/main.yml/badge.svg Documentation Status

Celery Batches provides a Task class that allows processing of multiple Celery task calls together as a list. The buffer of tasks calls is flushed on a timer and based on the number of queued tasks.

Some potential use-cases for batching of task calls include:

  • De-duplicating tasks.

  • Accumulating / only handling the latest task with similar arguments.

  • Bulk inserting / updating of data.

  • Tasks with expensive setup that can run across a range of arguments.

What do I need?

celery-batches version runs on,

  • Python (3.11, 3.12, 3.13, 3.14, 3.15)

  • PyPy (3.10, 3.11)

And is tested with Celery ~= 5.0.

If you’re running an older version of Python, you need to be running an older version of celery-batches, the last version supporting each Python version is listed below:

  • Python 2.7: celery-batches 0.3.

  • Python 3.4: celery-batches 0.2.

  • Python 3.5: celery-batches 0.3.

  • Python 3.6: celery-batches 0.5.

  • Python 3.7: celery-batches 0.7.

  • Python 3.8: celery-batches 0.9.

  • Python 3.9: celery-batches 0.11.

  • Python 3.10: celery-batches 0.12.

If you’re running an older version of Celery, you need to be running an older version of celery-batches:

  • Celery < 4.0: Use celery.contrib.batches instead.

  • Celery 4.0 - 4.3: celery-batches 0.3.

  • Celery 4.4: celery-batches 0.7.

  • Celery 5.0 - 5.1: celery-batches 0.9.

History

Celery Batches was distributed as part of Celery (as celery.contrib.batches) until Celery 4.0. This project updates the Batches code to maintain compatiblity with newer versions of Celery and other fixes. See the Changelog for details.

Additionally, this repository includes the full history of the code from celery.contrib.batches, but rewritten to the celery_batches/__init__.py file.

Metadata

Release files for celery-batches 0.12.1

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

Source distribution (sdist)

Source distribution for celery-batches 0.12.1
File Size Uploaded Provenance Actions
celery_batches-0.12.1.tar.gz 9.1 kB Without provenance Details for celery_batches-0.12.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for celery-batches 0.12.1
File Interpreter ABI Platform Actions
celery_batches-0.12.1-py3-none-any.whl Python 3 none any Details for celery_batches-0.12.1-py3-none-any.whl

Total release size: 18.3 kB

Release files / celery_batches-0.12.1.tar.gz

Download URL celery_batches-0.12.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0a1ba0697a272e64fa086c761729787a70c6bacf8342a3737cb3342535115276
BLAKE2b-256 checksum
How to use checksums
4577bed5da7ee29cb9c7aa836ad27bff3b8251b465d456c7be5bc1a723600dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / celery_batches-0.12.1-py3-none-any.whl

Download URL celery_batches-0.12.1-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b95d2eebe9df18c0e8c09503e71c64da5a0b5f5945fff275dcef2708ce4c6110
BLAKE2b-256 checksum
How to use checksums
26be6dbd7d0a1ce7634131cdb422f8a06b7962bc61e8b1730d02eea802e7e5a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for celery-batches 0.12.1

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.

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