@@ -188,15 +188,13 @@ def __init__(self, attributes=None, statically_defined=False):
188
188
if self .attributes ["trainium" ] is not None :
189
189
self .attributes ["inferentia" ] = self .attributes ["trainium" ]
190
190
191
- if not isinstance (BATCH_DEFAULT_TAGS , dict ) and not all (
192
- isinstance (k , str ) and isinstance (v , str )
193
- for k , v in BATCH_DEFAULT_TAGS .items ()
194
- ):
195
- raise BatchException (
196
- "BATCH_DEFAULT_TAGS environment variable must be Dict[str, str]"
197
- )
191
+ if not isinstance (metaflow_config .BATCH_DEFAULT_TAGS , dict ):
192
+ raise BatchException ("BATCH_DEFAULT_TAGS environment variable must be Dict[str, str]" )
193
+ if not all (isinstance (k , str ) and isinstance (v , str ) for k , v in metaflow_config .BATCH_DEFAULT_TAGS .items ()):
194
+ raise BatchException ("BATCH_DEFAULT_TAGS environment variable must be Dict[str, str]" )
195
+
198
196
if self .attributes ["aws_batch_tags" ] is None :
199
- self .attributes ["aws_batch_tags" ] = BATCH_DEFAULT_TAGS
197
+ self .attributes ["aws_batch_tags" ] = metaflow_config . BATCH_DEFAULT_TAGS
200
198
201
199
if self .attributes ["aws_batch_tags" ] is not None :
202
200
if not isinstance (self .attributes ["aws_batch_tags" ], dict ) and not all (
@@ -206,7 +204,7 @@ def __init__(self, attributes=None, statically_defined=False):
206
204
raise BatchException ("aws_batch_tags must be Dict[str, str]" )
207
205
208
206
self .attributes ["aws_batch_tags" ] = {
209
- ** BATCH_DEFAULT_TAGS ,
207
+ ** metaflow_config . BATCH_DEFAULT_TAGS ,
210
208
** self .attributes ["aws_batch_tags" ],
211
209
}
212
210
0 commit comments