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

Commit e83cce5

Browse files
author
Rajadeepan
committed
Add event when task is scheduled
1 parent 2bcd61f commit e83cce5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/scheduler/cache/cache.go

+1
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ func (sc *SchedulerCache) Bind(taskInfo *kbapi.TaskInfo, hostname string) error
424424
if err := sc.Binder.Bind(p, hostname); err != nil {
425425
sc.resyncTask(task)
426426
}
427+
sc.Recorder.Eventf(p, v1.EventTypeNormal, "Scheduled", "Successfully assigned %v/%v to %v", p.Namespace, p.Name, hostname)
427428
}()
428429

429430
return nil

0 commit comments

Comments
 (0)