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:
committed by
zach dwiel
parent
13d81f65b9
commit
98850464cc
@@ -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]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user