Commit cb7e945 1 parent 1bacc31 commit cb7e945 Copy full SHA for cb7e945
File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -289,17 +289,27 @@ def __init__(
289
289
290
290
# TODO: check that the type is one of the supported types
291
291
param_type = self .kwargs ["type" ] = self ._get_type (kwargs )
292
+
292
293
reserved_params = [
293
294
"params" ,
294
295
"with" ,
295
- "max-num-splits" ,
296
- "max-workers" ,
297
296
"tag" ,
298
- "run-id-file" ,
299
297
"namespace" ,
298
+ "obj" ,
299
+ "tags" ,
300
+ "decospecs" ,
301
+ "run-id-file" ,
302
+ "max-num-splits" ,
303
+ "max-workers" ,
304
+ "max-log-size" ,
305
+ "user-namespace" ,
300
306
]
307
+ reserved = set (reserved_params )
308
+ # due to the way Click maps cli args to function args we also want to add underscored params to the set
309
+ for param in reserved_params :
310
+ reserved .add (param .replace ("-" , "_" ))
301
311
302
- if self .name in reserved_params :
312
+ if self .name in reserved :
303
313
raise MetaflowException (
304
314
"Parameter name '%s' is a reserved "
305
315
"word. Please use a different "
You can’t perform that action at this time.
0 commit comments