Skip to main content

A Redis Backend for Celery with Polling

Project description

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

Usage

To use the Redis Cluster backend in your Celery application:

from celery import Celery

app = Celery('your_app',
             broker='redis://localhost:6379/0',
             backend='rediscluster://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='rediscluster://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.

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

celery_redis_poll-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celery_redis_poll-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file celery_redis_poll-0.1.0.tar.gz.

File metadata

  • Download URL: celery_redis_poll-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for celery_redis_poll-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d66532d61cb1d907582131ae1354c1a144e2fca99a992af8b9a8dd1ff31dbeec
MD5 65234c51fc3c41194f944b60473c1003
BLAKE2b-256 75e19bb1ebd11e7a3cec5ba6c108eea19d816769fb0b3314a6381ab1b0707d2e

See more details on using hashes here.

File details

Details for the file celery_redis_poll-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for celery_redis_poll-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0c7924a9a99d26465ca5bbfcae0dc6425bb25d625012301c6068973c4701cb9
MD5 ddddda6a831c8108567d5fe135b4310b
BLAKE2b-256 a53e03c7e3bb7f91aac1be81e04e91bebfdcafeb954b17167e9fb2c190345aea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page