MCPcopy Index your code
hub / github.com/ray-project/ray / validate_node_label_syntax

Function validate_node_label_syntax

python/ray/_private/label_utils.py:185–193  ·  view source on GitHub ↗
(labels: Dict[str, str])

Source from the content-addressed store, hash-verified

183# TODO (ryanaoleary@): This function will replace `validate_node_labels` after
184# the migration from NodeLabelSchedulingPolicy to the Label Selector API is complete.
185def validate_node_label_syntax(labels: Dict[str, str]):
186 if labels is None:
187 return
188 for key, value in labels.items():
189 possible_error_message = validate_label_key(key)
190 if possible_error_message:
191 raise ValueError(possible_error_message)
192 if value is not None:
193 validate_label_value(value)
194
195
196def validate_fallback_strategy(

Calls 3

validate_label_keyFunction · 0.85
validate_label_valueFunction · 0.85
itemsMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…