Skip to main content

Celery Redis Cluster

A Redis Cluster backend implementation for Celery. This package extends Celery's Redis backend to work with Redis Cluster, providing better scalability and high availability through Redis Cluster's sharding and replication capabilities.

Installation

pip install celery-redis-cluster

After installation new backends are automatically registered with Celery:

  • redis+cluster
  • rediss+cluster

Usage

To use the Redis Cluster backend in your Celery application:

from celery import Celery

from celery_redis_cluster_backend import install_redis_cluster_backend


app = Celery('your_app',
             broker='redis://localhost:6379/0',
             backend='redis+cluster://localhost:6379/0')

Configuration

The backend inherits all configuration options from Celery's Redis backend, with the addition of Redis Cluster specific handling. Here's an example configuration:

app.conf.update(
    result_backend='redis+cluster://localhost:6379/0',
    redis_backend_use_ssl={
        'ssl_cert_reqs': None,
        'ssl_ca_certs': None,
        'ssl_certfile': None,
        'ssl_keyfile': None
    },
    redis_max_connections=None,
    redis_socket_timeout=120.0,
    redis_socket_connect_timeout=120.0,
    redis_cluster_retry_on_timeout=True,
    redis_cluster_max_retry_on_timeout=3,
)

Requirements

  • Python >= 3.8
  • Celery >= 5.3.0
  • redis >= 4.5.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for celery-redis-cluster 0.2.3

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-redis-cluster 0.2.3
File Size Uploaded Provenance Actions
celery_redis_cluster-0.2.3.tar.gz 4.9 kB Without provenance Details for celery_redis_cluster-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for celery-redis-cluster 0.2.3
File Interpreter ABI Platform Actions
celery_redis_cluster-0.2.3-py3-none-any.whl Python 3 none any Details for celery_redis_cluster-0.2.3-py3-none-any.whl

Total release size: 9.5 kB

Release files / celery_redis_cluster-0.2.3.tar.gz

Download URL celery_redis_cluster-0.2.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0d3476a1095e9e763cc371848ead5f0068bed18f999e363e8dad7139cf3a3222
BLAKE2b-256 checksum
How to use checksums
68262974f1268b21dad968a0ed73495915cdc24cd05172e217169a9e1e142d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / celery_redis_cluster-0.2.3-py3-none-any.whl

Download URL celery_redis_cluster-0.2.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af7b57f4edf663cd20a5b3c1af4126dda937141b4adeb57cec0252faf6d0e241
BLAKE2b-256 checksum
How to use checksums
1a66f9a52f3baaa43a082a2770792b525b5713f14421978c1338fd8b6d3b63c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for celery-redis-cluster 0.2.3

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