File tree Expand file tree Collapse file tree 3 files changed +316
-196
lines changed
src/codeflare_sdk/ray/cluster Expand file tree Collapse file tree 3 files changed +316
-196
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,7 @@ def get_cluster(
10611061 # Create a temporary config with appwrapper=False to ensure build_ray_cluster returns RayCluster YAML
10621062 temp_cluster_config_dict = cluster_config .dict (exclude_none = True )
10631063 temp_cluster_config_dict ["appwrapper" ] = False
1064- # Set overwrite_default_resource_mapping=True to avoid conflicts when extended_resource_mapping
1064+ # Set overwrite_default_resource_mapping=True to avoid conflicts when extended_resource_mapping
10651065 # already contains the combined default and custom mappings from the original object
10661066 temp_cluster_config_dict ["overwrite_default_resource_mapping" ] = True
10671067 temp_cluster_config_for_spec = ClusterConfiguration (** temp_cluster_config_dict )
Original file line number Diff line number Diff line change @@ -293,14 +293,15 @@ def check_type(value, expected_type):
293293 def dict (self , exclude_none : bool = False ):
294294 """
295295 Convert the ClusterConfiguration to a dictionary.
296-
296+
297297 Args:
298298 exclude_none (bool): If True, exclude fields with None values.
299-
299+
300300 Returns:
301301 dict: Dictionary representation of the ClusterConfiguration.
302302 """
303303 import dataclasses
304+
304305 result = dataclasses .asdict (self )
305306 if exclude_none :
306307 result = {k : v for k , v in result .items () if v is not None }
You can’t perform that action at this time.
0 commit comments