<#1191 Add flyteplugins-redis: redis:// metadata s...
# flyte-github
a
#1191 Add flyteplugins-redis: redis:// metadata storage via fsspec entry point Pull request opened by kumare3 Why Make it possible to use an alternate metadata storage (inputs/outputs) backend besides object stores, selected purely by path. This adds a Redis-backed implementation: use a
redis://
path anywhere a metadata path is accepted and it just works. What New plugin
plugins/redis
(
flyteplugins-redis
) — zero core SDK changes: •
RedisFileSystem
, an fsspec
AsyncFileSystem
that maps file semantics onto Redis string keys: • path model
redis://[user:pass@]host[:port]/key/path
— netloc selects the server, the rest is the key, verbatim (e.g.
flyte/runs/r1/a0/0/inputs.pb
) • one file = one Redis string value; directories emulated as key prefixes via
SCAN
• streamed reads via
GETRANGE
, streamed writes via
APPEND
(
RedisStreamedFile
), so large values never need to be buffered whole • per-
(netloc, event-loop)
client cache, since fsspec drives filesystems both from caller loops and its own IO-loop thread • Registered through fsspec's
fsspec.specs
entry point, which is lazy: installing the package only records the class path; nothing is imported (and no Redis server contacted) until a
redis://
path is first resolved. Verified hands-on that
flyte.storage.get_underlying_filesystem("redis://...")
resolves the plugin with no eager import. All flyte metadata IO (`inputs.pb`/`outputs.pb`/`error.pb`) already flows through
flyte.storage
(`put_stream`/`get_stream`/`exists`), which resolves filesystems by path protocol — so this composes with e.g.
flyte.with_runcontext(mode="hybrid", run_base_dir="redis://localhost:6379/flyte/metadata")
. Testing 14 tests against fakeredis (no server needed), including the exact `put_stream`/`get_stream`/`exists` path runtime metadata IO uses, empty payloads (zero-input tasks serialize to
b""
), multi-chunk streamed writes, ranged reads, `ls`/`info`/`rm`, and local `get`/`put` round-trips. CI picks the plugin up automatically (workflow auto-discovers plugins with a
tests/
dir). 🤖 Generated with Claude Code flyteorg/flyte-sdk