HuangTing-Yao commented on a change in pull request #252:
URL: 
https://github.com/apache/incubator-yunikorn-k8shim/pull/252#discussion_r611147361



##########
File path: pkg/cache/task.go
##########
@@ -265,6 +265,12 @@ func (task *Task) handleSubmitTaskEvent(event *fsm.Event) {
 
        events.GetRecorder().Eventf(task.pod, v1.EventTypeNormal, "Scheduling",
                "%s is queued and waiting for allocation", task.alias)
+       // if this task is belong to the gang member, then post a message to 
indicate the pod will being scheduled as gang member
+       if !task.placeholder && task.taskGroupName != "" {
+               events.GetRecorder().Eventf(task.pod,
+                       v1.EventTypeNormal, "GangScheduling",
+                       "Pod belongs to the taskGroup %s, it will being 
scheduled as a gang member", task.taskGroupName)

Review comment:
       Sure.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to