From b08b7ea8c65e98e2336783282d35b1d73e6d742b Mon Sep 17 00:00:00 2001 From: aresnow Date: Wed, 19 Apr 2023 13:05:25 +0800 Subject: [PATCH] break when upload failed --- python/xorbits/_mars/services/storage/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/xorbits/_mars/services/storage/core.py b/python/xorbits/_mars/services/storage/core.py index 8ff54f5e5..b6bdb89d5 100644 --- a/python/xorbits/_mars/services/storage/core.py +++ b/python/xorbits/_mars/services/storage/core.py @@ -645,6 +645,7 @@ async def upload_storage_info(self): Exception ) as ex: # pragma: no cover # noqa: E722 # nosec # pylint: disable=bare-except logger.error(f"Failed to upload storage info: {ex}") + break await asyncio.sleep(0.5) async def upload_disk_info(self):