this is my code:
pool = aioredis.ConnectionPool.from_url("redis://localhost:6379")
redis = await aioredis.Redis(connection_pool=pool, ssl=False, ssl_cert_reqs="None")
async with redis.lock("hello_lock") as lock:
print("hello")
await redis.hset("hello", "1", "2")
the Context Manager never gets entered and it seems like the lock is not being acquired at all. The program stays running/stuck on this line:
async with redis.lock("hello_lock") as lock:
Acquiring the lock should be a very quick thing so i'm confused whats happening here. Any help would be appreciated.