Skip to content

Commit

Permalink
fix: break out stopping... states from stopped states in webui
Browse files Browse the repository at this point in the history
This fixes an issue where experiments that were stopping for one reason
or another showed as stopped.
  • Loading branch information
ashtonG committed Jan 11, 2024
1 parent 9dc4fc8 commit d19433b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webui/react/src/components/ExperimentIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ const ExperimentIcons: React.FC<Props> = ({
case RunState.Unspecified:
case JobState.UNSPECIFIED:
return { name: 'active', title: stateToLabel(state) };
default:
case RunState.StoppingCanceled:
case RunState.StoppingCompleted:
case RunState.StoppingError:
case RunState.StoppingKilled:
return { color: 'cancel', name: 'spin-shadow', title: stateToLabel(state) };
case RunState.Canceled:
return { color: 'cancel', name: 'cancelled', title: 'Stopped' };
}
}, [backgroundColor, opacity, state]);
Expand Down

0 comments on commit d19433b

Please sign in to comment.