With many drives (50+), sequential SMART checks take time. Consider asyncio:
async def _check_drives_health_async(self):
tasks = [self._check_smart_health_async(disk) for disk in physical_disks]
results = await asyncio.gather(*tasks, return_exceptions=True)
This could reduce execution time from minutes to seconds.
With many drives (50+), sequential SMART checks take time. Consider asyncio:
async def _check_drives_health_async(self):
tasks = [self._check_smart_health_async(disk) for disk in physical_disks]
results = await asyncio.gather(*tasks, return_exceptions=True)
This could reduce execution time from minutes to seconds.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
With many drives (50+), sequential SMART checks take time. Consider asyncio:
async def _check_drives_health_async(self):
tasks = [self._check_smart_health_async(disk) for disk in physical_disks]
results = await asyncio.gather(*tasks, return_exceptions=True)
This could reduce execution time from minutes to seconds.