Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Add event when task is scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajadeepan committed Mar 13, 2019
1 parent 2bcd61f commit e83cce5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ func (sc *SchedulerCache) Bind(taskInfo *kbapi.TaskInfo, hostname string) error
if err := sc.Binder.Bind(p, hostname); err != nil {
sc.resyncTask(task)
}
sc.Recorder.Eventf(p, v1.EventTypeNormal, "Scheduled", "Successfully assigned %v/%v to %v", p.Namespace, p.Name, hostname)
}()

return nil
Expand Down

0 comments on commit e83cce5

Please sign in to comment.