Skip to content

Commit 19e40bb

Browse files
committed
bug fix: status may not be available in RayCluster
1 parent a34e6f4 commit 19e40bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codeflare_sdk/cluster/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ def _get_app_wrappers(
883883

884884

885885
def _map_to_ray_cluster(rc) -> Optional[RayCluster]:
886-
if "state" in rc["status"]:
886+
if "status" in rc and "state" in rc["status"]:
887887
status = RayClusterStatus(rc["status"]["state"].lower())
888888
else:
889889
status = RayClusterStatus.UNKNOWN

0 commit comments

Comments
 (0)