Skip to content

Commit ef2d74f

Browse files
authored
Revert "fix: Manage redis pipe's context (feast-dev#3655)"
This reverts commit 9cec329.
1 parent 36a0fa7 commit ef2d74f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • sdk/python/feast/infra/online_stores

sdk/python/feast/infra/online_stores/redis.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ class RedisOnlineStore(OnlineStore):
8989
def delete_entity_values(self, config: RepoConfig, join_keys: List[str]):
9090
client = self._get_client(config.online_store)
9191
deleted_count = 0
92+
pipeline = client.pipeline(transaction=False)
9293
prefix = _redis_key_prefix(join_keys)
9394

94-
with client.pipeline(transaction=False) as pipe:
95-
for _k in client.scan_iter(
96-
b"".join([prefix, b"*", config.project.encode("utf8")])
97-
):
98-
pipe.delete(_k)
99-
deleted_count += 1
100-
pipe.execute()
95+
for _k in client.scan_iter(
96+
b"".join([prefix, b"*", config.project.encode("utf8")])
97+
):
98+
pipeline.delete(_k)
99+
deleted_count += 1
100+
pipeline.execute()
101101

102102
logger.debug(f"Deleted {deleted_count} rows for entity {', '.join(join_keys)}")
103103

0 commit comments

Comments
 (0)