Skip to content

Commit b8a3683

Browse files
committed
fix: add check for runnning notebook server
1 parent 8641aab commit b8a3683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func processStatus(notebook *kubeflowv1.Notebook, events []*corev1.Event) (Statu
113113
}
114114

115115
// Return Container State if it's available
116-
if notebook.Status.ContainerState.Running != nil {
116+
if notebook.Status.ContainerState.Running != nil && notebook.Status.ReadyReplicas != 0 {
117117
return StatusRunning, "Running"
118118
}
119119
if notebook.Status.ContainerState.Terminated != nil {

0 commit comments

Comments
 (0)