@@ -247,7 +247,6 @@ def _check_databases_health(self, on_error: Callable[[Exception], None] = None):
247
247
Runs health checks as a recurring task.
248
248
Runs health checks against all databases.
249
249
"""
250
-
251
250
for database , _ in self ._databases :
252
251
self ._check_db_health (database , on_error )
253
252
@@ -313,9 +312,11 @@ def pipeline_execute_command(self, *args, **options) -> "Pipeline":
313
312
return self
314
313
315
314
def execute_command (self , * args , ** kwargs ):
315
+ """Adds a command to the stack"""
316
316
return self .pipeline_execute_command (* args , ** kwargs )
317
317
318
318
def execute (self ) -> List [Any ]:
319
+ """Execute all the commands in the current pipeline"""
319
320
if not self ._client .initialized :
320
321
self ._client .initialize ()
321
322
@@ -326,9 +327,16 @@ def execute(self) -> List[Any]:
326
327
327
328
class PubSub :
328
329
"""
329
- PubSub object for multi database client.
330
+ PubSub object for multi- database client.
330
331
"""
331
332
def __init__ (self , client : MultiDBClient , ** kwargs ):
333
+ """Initialize the PubSub object for a multi-database client.
334
+
335
+ Args:
336
+ client: MultiDBClient instance to use for pub/sub operations
337
+ **kwargs: Additional keyword arguments to pass to the underlying pubsub implementation
338
+ """
339
+
332
340
self ._client = client
333
341
self ._client .command_executor .pubsub (** kwargs )
334
342
0 commit comments