Skip to content

Commit

Permalink
ImagePullBackOff is not handled as error during workbench start (#3260)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanshug authored Oct 2, 2024
1 parent 2ba600c commit 96beee5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/pages/projects/notebook/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ export const useNotebookStatus = (
if (!gracePeriod && lastItem.reason === 'FailedScheduling') {
currentEvent = 'Insufficient resources to start';
status = EventStatus.ERROR;
} else if (!gracePeriod && lastItem.reason === 'BackOff') {
currentEvent = 'ImagePullBackOff';
status = EventStatus.ERROR;
} else if (lastItem.type === 'Warning') {
currentEvent = 'Issue creating notebook container';
status = EventStatus.WARNING;
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/utilities/notebookControllerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ export const useNotebookStatus = (
if (!gracePeriod && lastItem.reason === 'FailedScheduling') {
currentEvent = 'Insufficient resources to start';
status = EventStatus.ERROR;
} else if (!gracePeriod && lastItem.reason === 'BackOff') {
currentEvent = 'ImagePullBackOff';
status = EventStatus.ERROR;
} else if (lastItem.type === 'Warning') {
currentEvent = 'Issue creating notebook container';
status = EventStatus.WARNING;
Expand Down

0 comments on commit 96beee5

Please sign in to comment.