File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ def ecr_login_boto3(region: str, account_id: str):
46
46
def ensure_buildx_builder (builder_name : str = DEFAULT_BUILDER_NAME ) -> str :
47
47
"""
48
48
Ensures a Docker Buildx builder exists for multi-platform builds.
49
- This function is safe for concurrent execution across multiple processes.
50
49
51
50
:param builder_name: Name for the buildx builder
52
51
:return: The builder name that was created or reused
@@ -70,13 +69,6 @@ def ensure_buildx_builder(builder_name: str = DEFAULT_BUILDER_NAME) -> str:
70
69
)
71
70
logger .info (f"Created new buildx builder: { builder_name } " )
72
71
except DockerException as e :
73
- # Check if this is a race condition (another process created the builder)
74
- if hasattr (e , 'stderr' ) and 'existing instance for' in str (e .stderr ):
75
- logger .info (f"Builder '{ builder_name } ' was created by another process – using it." )
76
- docker .buildx .use (builder_name )
77
- return builder_name
78
-
79
- # Otherwise, it's a real error
80
72
logger .error (f"Failed to create buildx builder: { e } " )
81
73
raise
82
74
You can’t perform that action at this time.
0 commit comments