Registry / devops / prefect-redis

prefect-redis

JSON →
library0.2.12pypypi✓ verified 82d ago

Prefect integrations with Redis, providing Redis task runner, blocks for connection management, and utility tasks for Redis operations. Current version 0.2.12, regular releases.

pip install prefect-redis
INSTALL
IMPORT
SIG · PREFECT-REDIS
P
prefect-redis
devopspythonv0.2.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RedisDatabase
from prefect_redis import RedisDatabase
from prefect_redis import RedisServerCredentials
RedisLockManager
from prefect_redis import RedisLockManager
tasks
from prefect_redis import tasks

Basic flow using RedisTaskRunner.

import os from prefect import flow, task from prefect_redis import RedisServerCredentials, RedisTaskRunner credentials = RedisServerCredentials( host=os.environ.get('REDIS_HOST', 'localhost'), port=int(os.environ.get('REDIS_PORT', 6379)), password=os.environ.get('REDIS_PASSWORD', '') ) @task def my_task(): return "hello" @flow(task_runner=RedisTaskRunner(credentials=credentials)) def my_flow(): my_task() if __name__ == '__main__': my_flow()
Debug
Known issues
gotchaRedisTaskRunner requires Prefect server or work pool to be running; tasks are not executed locally.
fix
Ensure you have a Prefect server or worker running before executing flows with RedisTaskRunner.
affects: all
gotchaBlock credentials (RedisServerCredentials) are not automatically loaded from Prefect Cloud; you must manually pass or use `load` method.
fix
Use `RedisServerCredentials.load('my-block-name')` to load saved blocks.
affects: <0.2.0
deprecatedSome older imports like `prefect_redis.blocks.RedisServerCredentials` are deprecated; use top-level module imports.
fix
Use `from prefect_redis import RedisServerCredentials` instead.
affects: <0.2.0
Upgrade
Version history
0.2.12latest on PyPI · released Jun 5, 2026
Audit
Dependencies
prefect>=2.0.0requiredCore Prefect dependency
redisrequiredRedis client library
Agent activity
25 hits · last 30 days
node
24
Amazon
1
Resources
prefect-redis — pip install prefect-redis · libregistry