pbacsko commented on code in PR #567:
URL: https://github.com/apache/yunikorn-core/pull/567#discussion_r1229649145
##########
pkg/scheduler/objects/object_state.go:
##########
@@ -78,12 +78,25 @@ func NewObjectState() *fsm.FSM {
},
fsm.Callbacks{
"enter_state": func(_ context.Context, event
*fsm.Event) {
+ var object string
+ switch v := event.Args[0].(type) {
+ case *Queue:
+ object = v.QueuePath
+ case string:
+ object = v
Review Comment:
Then simply introduce a new state machine for Queue.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]