lablup / lablup/backend.ai

Update Redis type definitions for valkey-glide compatibility

Open
#7,151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

## Objective

Update type definitions to use valkey-glide client types instead of redis-py.

## Files to modify

- `src/ai/backend/common/types.py` (lines 1806-1815)
- `RedisConnectionInfo` dataclass
- Import statements (lines 50, 61)

## Tasks

- [ ] Replace `Redis` type with valkey-glide client type
- [ ] Update or remove `Sentinel` type reference if needed
- [ ] Update all import statements
- [ ] Ensure backward compatibility where needed

## Related

Part of BA-2585 - Retire redis-py entirely

JIRA Issue: BA-3268

Contributor guide

Open the contributing guide

Research direction

Read src/ai/backend/common/types.py, especially the import statements around lines 50 and 61 and RedisConnectionInfo around lines 1806-1815. Check the current Redis and Sentinel references, then confirm that the definitions and imports use the valkey-glide client types while preserving any required backward compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, redis
Domain
backend, databases
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.