Skip to content

Commit

Permalink
[YUNIKORN-2704] Event publish errors out when predicates fail (#863)
Browse files Browse the repository at this point in the history
Closes: #863

Signed-off-by: Peter Bacsko <[email protected]>
  • Loading branch information
pbacsko committed Jun 28, 2024
1 parent e59162d commit 22228df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ func (ctx *Context) PublishEvents(eventRecords []*si.EventRecord) {
taskID := record.ObjectID
if task := ctx.getTask(appID, taskID); task != nil {
events.GetRecorder().Eventf(task.GetTaskPod().DeepCopy(), nil,
v1.EventTypeNormal, "", "", record.Message)
v1.EventTypeNormal, "Informational", "Informational", record.Message)
} else {
log.Log(log.ShimContext).Warn("task event is not published because task is not found",
zap.String("appID", appID),
Expand Down

0 comments on commit 22228df

Please sign in to comment.