Skip to content

Commit 424b2f9

Browse files
authored
Merge pull request #53 from StatCan/fix-upstream-error
fix: add check for runnning notebook server
2 parents 8641aab + b8a3683 commit 424b2f9

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)