Skip to content

Commit

Permalink
fix: add check for runnning notebook server
Browse files Browse the repository at this point in the history
  • Loading branch information
saffaalvi committed Jan 7, 2021
1 parent 8641aab commit b8a3683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func processStatus(notebook *kubeflowv1.Notebook, events []*corev1.Event) (Statu
}

// Return Container State if it's available
if notebook.Status.ContainerState.Running != nil {
if notebook.Status.ContainerState.Running != nil && notebook.Status.ReadyReplicas != 0 {
return StatusRunning, "Running"
}
if notebook.Status.ContainerState.Terminated != nil {
Expand Down

0 comments on commit b8a3683

Please sign in to comment.