Skip to content

Commit 9ff002f

Browse files
Aditi2424adishaa
andauthored
Fix get job details for CLI flow (#104)
Co-authored-by: adishaa <[email protected]>
1 parent 0f9f7b7 commit 9ff002f

File tree

1 file changed

+5
-0
lines changed
  • src/hyperpod_cli/commands

1 file changed

+5
-0
lines changed

src/hyperpod_cli/commands/job.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,11 @@ def start_job(
767767
if custom_labels
768768
else None,
769769
)
770+
771+
if "custom_labels" not in config["cluster"]["cluster_config"] or config["cluster"]["cluster_config"]["custom_labels"] is None:
772+
config["cluster"]["cluster_config"]["custom_labels"] = {}
773+
config["cluster"]["cluster_config"]["custom_labels"][USER_NAME_LABEL_KEY] = user_name
774+
770775
_override_or_remove(
771776
config["cluster"]["cluster_config"], "priority_class_name", priority
772777
)

0 commit comments

Comments
 (0)