diff --git a/scripts/wait_for_redis.py b/scripts/wait_for_redis.py index 306b9d49..38737728 100644 --- a/scripts/wait_for_redis.py +++ b/scripts/wait_for_redis.py @@ -29,6 +29,7 @@ def wait_for_redis(host='localhost', port=6379, db=0, max_retries=30, retry_inte socket_connect_timeout=2 ) redis_client.ping() + redis_client.flushdb() # Flush the database to ensure it's clean logger.info(f"✅ Redis at {host}:{port}/{db} is now available!") return True except (redis.exceptions.ConnectionError, redis.exceptions.TimeoutError) as e: