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 5, 2022
1 parent ddfb70d commit 9f21923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/objects/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func NewApplication(siApp *si.AddApplicationRequest, ugi security.UserGroup, eve
stateMachine: NewAppState(),
placeholderAsk: resources.NewResourceFromProto(siApp.PlaceholderAsk),
finishedTime: time.Time{},
rejectionMessage: "",
}
placeholderTimeout := common.ConvertSITimeout(siApp.ExecutionTimeoutMilliSeconds)
if time.Duration(0) == placeholderTimeout {
Expand Down
4 changes: 2 additions & 2 deletions pkg/scheduler/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -1491,8 +1491,8 @@ func (pc *PartitionContext) hasUnlimitedNode() bool {
}

func (pc *PartitionContext) addRejectedApplication(rejectedApplication *objects.Application,rejectionMessage string) error {
pc.Lock()
pc.Unlock()
rejectedApplication.GetRejectionMessage()
rejectedApplication.GetRejectionMessage()
if err := rejectedApplication.HandleApplicationEvent(objects.RejectApplication); err != nil {
log.Logger().Warn("Application state not changed to Rejected",
zap.String("currentState", rejectedApplication.CurrentState()),
Expand Down

0 comments on commit 9f21923

Please sign in to comment.