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

This commit is contained in:
Ajay Deshpande authored and zach dwiel committed 2018-10-23 16:50:48 -04:00
1 parent 13d81f65b9
commit 98850464cc
4 files changed
+188 -31

No files matched your search

@@ -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]:
"""