1
0
mirror of https://github.com/gryf/coach.git synced 2026-02-16 05:55:46 +01:00

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

This commit is contained in:
Ajay Deshpande
2018-09-19 09:03:11 -07:00
committed by zach dwiel
parent 13d81f65b9
commit 98850464cc
4 changed files with 188 additions and 31 deletions

View File

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