Adding nfs pv, pvc, waiting for memory to be full

This commit is contained in:
Ajay Deshpande
2018-10-23 16:50:48 -04:00
committed by zach dwiel
parent 13d81f65b9
commit 98850464cc
4 changed files with 188 additions and 31 deletions
@@ -68,7 +68,10 @@ class DistributedExperienceReplay(Memory):
"""
Get the number of transitions in the ER
"""
return self.redis_connection.info(section='keyspace')['db{}'.format(self.db)]['keys']
try:
return self.redis_connection.info(section='keyspace')['db{}'.format(self.db)]['keys']
except Exception as e:
return 0
def sample(self, size: int) -> List[Transition]:
"""