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