@@ -508,7 +508,7 @@ def get_machines_not_synced(self) -> List[Any]:
508508 if item ['backlogged_storage_bytes' ] > 0 or item ['rescanned_storage_bytes' ] > 0 :
509509 backlogged_machines .append (item )
510510 if len (backlogged_machines ) > 0 :
511- print (f"INFO: The following machines are backlogged in Project: ({ self .project_name } )" )
511+ print (f"INFO: { len ( backlogged_machines ) } machines are backlogged in Project: ({ self .project_name } )" )
512512 return backlogged_machines
513513 else :
514514 print (f"INFO: All machines are in Continuous Data Replication in Project: ({ self .project_name } )" )
@@ -521,7 +521,7 @@ def get_machines_not_started(self) -> List[Any]:
521521 if item ['replication_status' ] != "STARTED" :
522522 not_started_machines .append (item )
523523 if len (not_started_machines ) > 0 :
524- print (f"INFO: Machines not STARTED found in Project: ({ self .project_name } )" )
524+ print (f"INFO: { len ( not_started_machines ) } machines not STARTED found in Project: ({ self .project_name } )" )
525525 return not_started_machines
526526 else :
527527 print (f"INFO: All machines are STARTED in Project: ({ self .project_name } )" )
@@ -538,10 +538,10 @@ def get_stale_machines(self, delta_seconds: int = 86400) -> List[Any]:
538538 if int (last_seen_delta .total_seconds ()) >= delta_seconds :
539539 stale_machines .append (item )
540540 if len (stale_machines ) > 0 :
541- print (f"INFO: Machines not seen for { delta_seconds } seconds found in Project: ({ self .project_name } )" )
541+ print (f"INFO: { len ( stale_machines ) } machines not seen for { delta_seconds } seconds found in Project: ({ self .project_name } )" )
542542 return stale_machines
543543 else :
544- print (f"INFO: No machines in Project: ({ self .project_name } )" )
544+ print (f"INFO: All machines have been seen at least { delta_seconds } seconds ago in Project: ({ self .project_name } )" )
545545
546546 def update_blueprint (self ) -> bool :
547547 """Update the blueprint associated with the specified machines."""
0 commit comments