Adding nfs pv, pvc, waiting for memory to be full
This commit is contained in:
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]:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user