Skip to content

Commit 04486f0

Browse files
committed
update image mirror: add retry for build
1 parent b162f5d commit 04486f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rock/sdk/builder/image_mirror.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
import subprocess
33

44
from rock.sdk.builder.base import EnvBuilder
5-
from rock.utils.docker import ImageUtil
5+
from rock.utils import ImageUtil, retry_async
66

77
logger = logging.getLogger(__name__)
88

99

1010
class ImageMirror(EnvBuilder):
11+
@retry_async(max_attempts=3)
1112
async def build(
1213
self,
1314
instance_record: dict[str, str] | None = None,

0 commit comments

Comments
 (0)