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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb0da14b8a9a220741c52fff5f304a4a4329e190423abaac169a4cf0c82f74ef |
|
MD5 | 69fdc0db1927ebbc7155c04c1c1348e0 |
|
BLAKE2b-256 | e5f3221b7ddbe1f09bb277d8d093974d318264cae0a50d21855c418465e29fab |
File details
Details for the file celery_valkey_backend-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: celery_valkey_backend-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd31b9ba515bce420c26c504ac3e0de2672516120e9d521380bf765e3d36cfa |
|
MD5 | 629b7097116fba958a1203cf9265b888 |
|
BLAKE2b-256 | e5866f78d30ad86ae67871791e4c943f80e2e40adaae5c303cc1812425a6e46b |