pub async fn update_machines_stats( config: Config, connection: Connection, locked_monitord_stats: Arc<RwLock<MonitordStats>>, ) -> Result<()>