Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankert01 authored Aug 11, 2024
1 parent 6849dcc commit 47ba6d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/cache/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ func (ctx *Context) updateYuniKornPod(appID string, pod *v1.Pod) {

// treat terminated pods like a remove
if utils.IsPodTerminated(pod) {
if app != nil {
ctx.notifyTaskComplete(app, taskID)
}
ctx.notifyTaskComplete(app, taskID)
log.Log(log.ShimContext).Debug("Request to update terminated pod, removing from cache", zap.String("podName", pod.Name))
ctx.schedulerCache.RemovePod(pod)
return
Expand Down

0 comments on commit 47ba6d5

Please sign in to comment.