diff --git a/python/ray/dashboard/client/src/api.ts b/python/ray/dashboard/client/src/api.ts index c708bb918..835188911 100644 --- a/python/ray/dashboard/client/src/api.ts +++ b/python/ray/dashboard/client/src/api.ts @@ -189,7 +189,7 @@ export type FullActorInfo = { export type PartialActorInfo = { actorId: string; actorTitle: string; - requiredResources: { [key: string]: number }; + requiredResources?: { [key: string]: number }; state: ActorState.Invalid; invalidStateType?: InvalidStateType; }; diff --git a/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actor.tsx b/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actor.tsx index c0f8f266d..f8d9fa539 100644 --- a/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actor.tsx +++ b/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actor.tsx @@ -192,6 +192,7 @@ class Actor extends React.Component, State> { { label: "Required resources", value: + actor.requiredResources && Object.entries(actor.requiredResources).length > 0 && Object.entries(actor.requiredResources) .sort((a, b) => a[0].localeCompare(b[0]))