Consider Async for Network/Subprocess Calls #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.