Skip to content

Commit

Permalink
Merge pull request #53 from StatCan/fix-upstream-error
Browse files Browse the repository at this point in the history
fix: add check for runnning notebook server
  • Loading branch information
sylus authored Jan 13, 2021
2 parents 8641aab + b8a3683 commit 424b2f9
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 424b2f9

Please sign in to comment.