Skip to content

Commit

Permalink
[YUNIKORN-1093] Track rejected applications
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsgateted committed Mar 6, 2022
1 parent 7dadbb8 commit 45ebe12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,7 @@ func (cc *ClusterContext) handleRMUpdateApplicationEvent(event *rmevent.RMUpdate
ApplicationID: app.ApplicationID,
Reason: err.Error(),
})
rejectedApp := objects.NewApplication(app, ugi, cc.rmEventHandler, request.RmID)
partition.addRejectedApplication(rejectedApp, err.Error())
partition.addRejectedApplication(schedApp, err.Error())

log.Logger().Error("Failed to add application to partition (placement rejected)",
zap.String("applicationID", app.ApplicationID),
Expand Down
1 change: 1 addition & 0 deletions pkg/scheduler/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,7 @@ func (pc *PartitionContext) GetAppsByState(state string) []*objects.Application
return appList
}

// used to find expired apps in rejected applications
func (pc *PartitionContext) GetRejectedAppsByState(state string) []*objects.Application {
pc.RLock()
defer pc.RUnlock()
Expand Down

0 comments on commit 45ebe12

Please sign in to comment.