Pynenc Redis Plugin¶
Full-stack Redis backend for Pynenc distributed task orchestration.
The pynenc-redis plugin provides all five Pynenc components running on Redis.
Install it alongside Pynenc and it registers itself automatically via Python entry points.
pip install pynenc-redis
Components at a Glance¶
Component |
Class |
Role |
|---|---|---|
Orchestrator |
|
Distributed status tracking & blocking control |
Broker |
|
FIFO message queue via Redis lists with blocking pop |
State Backend |
|
Persistent state, results, exceptions & workflow data |
Client Data Store |
|
Argument caching for large serialized payloads |
Trigger |
|
Event-driven & cron-based task scheduling |
Quick Start¶
from pynenc import PynencBuilder
app = (
PynencBuilder()
.app_id("my_app")
.redis(url="redis://localhost:6379") # all components on Redis
.process_runner()
.build()
)
@app.task
def add(x: int, y: int) -> int:
return x + y
.redis() registers every component at once. See Installation & Quick Start for
environment-variable and Docker Compose alternatives.
Get up and running with PynencBuilder, environment variables, and Docker Compose examples.
All connection, pool, orchestrator, state backend, and trigger settings — with types, defaults, and descriptions.
How the plugin uses Redis: connection pooling, key naming convention, atomic operations, and data structure choices.
Part of the Pynenc ecosystem · MongoDB Plugin · RabbitMQ Plugin