Skip to main content

A custom Celery result backend using Valkey as the storage engine

Project description

Celery ValKey Backend

A custom result backend for Celery using ValKey as the storage engine. This backend provides a scalable, high-performance alternative to traditional result backends by leveraging ValKey's distributed key-value store capabilities.

Requirements

  • Python >= 3.8
  • Celery >= 4.4.0
  • ValKey >= 6.0.0

Installation

Install the package using pip:

pip install celery-valkey-backend

Quick Start

Use the ValKey backend in your Celery application:

from celery import Celery

app = Celery('your_app', backend='valkey://localhost:6379/0')

@app.task
def add(x, y):
    return x + y

# Using the task
result = add.delay(4, 4)
print(result.get())  # Output: 8

URL Format

The backend URL format:

valkey://host:port/db

Example:

valkey://localhost:6379/0

Development

# Clone the repository
git clone https://github.com/vuonglv1612/celery-valkey-backend.git
cd celery-valkey-backend

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

License

This project is licensed under the MIT License.

Support

If you encounter any problems or have questions, please open an issue on GitHub Issues.

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_valkey_backend-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

celery_valkey_backend-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: celery_valkey_backend-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for celery_valkey_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb0da14b8a9a220741c52fff5f304a4a4329e190423abaac169a4cf0c82f74ef
MD5 69fdc0db1927ebbc7155c04c1c1348e0
BLAKE2b-256 e5f3221b7ddbe1f09bb277d8d093974d318264cae0a50d21855c418465e29fab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for celery_valkey_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbd31b9ba515bce420c26c504ac3e0de2672516120e9d521380bf765e3d36cfa
MD5 629b7097116fba958a1203cf9265b888
BLAKE2b-256 e5866f78d30ad86ae67871791e4c943f80e2e40adaae5c303cc1812425a6e46b

See more details on using hashes here.

Supported by

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