Skip to content

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 14, 2019
1 parent 702df5c commit 4bb8fa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ func (sc *SchedulerCache) Bind(taskInfo *kbapi.TaskInfo, hostname string) error
go func() {
if err := sc.Binder.Bind(p, hostname); err != nil {
sc.resyncTask(task)
} else {
sc.Recorder.Eventf(p, v1.EventTypeNormal, "Scheduled", "Successfully assigned %v/%v to %v", p.Namespace, p.Name, hostname)
}
}()

Expand Down

0 comments on commit 4bb8fa0

Please sign in to comment.