@@ -237,7 +237,7 @@ def generate_appwrapper(
237
237
instascale : bool ,
238
238
instance_types : list ,
239
239
env ,
240
- priority : str ,
240
+ dispatch_priority : str ,
241
241
):
242
242
user_yaml = read_template (template )
243
243
appwrapper_name , cluster_name = gen_names (name )
@@ -246,7 +246,7 @@ def generate_appwrapper(
246
246
route_item = resources ["resources" ].get ("GenericItems" )[1 ]
247
247
update_names (user_yaml , item , appwrapper_name , cluster_name , namespace )
248
248
update_labels (user_yaml , instascale , instance_types )
249
- update_priority (user_yaml , item , priority )
249
+ update_priority (user_yaml , item , dispatch_priority )
250
250
update_scheduling_spec (user_yaml , workers )
251
251
update_custompodresources (
252
252
item , min_cpu , max_cpu , min_memory , max_memory , gpu , workers
@@ -345,10 +345,10 @@ def main(): # pragma: no cover
345
345
help = "Set the kubernetes namespace you want to deploy your cluster to. Default. If left blank, uses the 'default' namespace" ,
346
346
)
347
347
parser .add_argument (
348
- "--priority" ,
348
+ "--dispatch- priority" ,
349
349
required = False ,
350
- default = "low " ,
351
- help = "Set the priority of the cluster. Default is 'low'. Options are 'low', 'default', 'high'" ,
350
+ default = "default " ,
351
+ help = "Set the dispatch priority of the framework cluster. Options are 'low', 'default', and 'high'" ,
352
352
)
353
353
354
354
args = parser .parse_args ()
@@ -364,7 +364,7 @@ def main(): # pragma: no cover
364
364
instascale = args .instascale
365
365
instance_types = args .instance_types
366
366
namespace = args .namespace
367
- priority = args .priority
367
+ dispatch_priority = args .dispatch_priority
368
368
env = {}
369
369
370
370
outfile = generate_appwrapper (
@@ -381,7 +381,7 @@ def main(): # pragma: no cover
381
381
instascale ,
382
382
instance_types ,
383
383
env ,
384
- priority ,
384
+ dispatch_priority ,
385
385
)
386
386
return outfile
387
387
0 commit comments