Skip to content

Commit

Permalink
[YUNIKORN-2901] Ensure queuees are created with proper queue path (#997)
Browse files Browse the repository at this point in the history
Closes: #997

Signed-off-by: Craig Condit <ccondit@apache.org>
  • Loading branch information
Hengzhe authored and craigcondit committed Nov 21, 2024
1 parent 1f23de3 commit ebb8b1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/scheduler/objects/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ func NewConfiguredQueue(conf configs.QueueConfig, parent *Queue) (*Queue, error)
sq := newBlankQueue()
sq.Name = strings.ToLower(conf.Name)
sq.QueuePath = strings.ToLower(conf.Name)
if parent != nil {
sq.QueuePath = parent.QueuePath + configs.DOT + sq.Name
}
sq.parent = parent
sq.isManaged = true
sq.maxRunningApps = conf.MaxApplications
Expand All @@ -134,7 +137,6 @@ func NewConfiguredQueue(conf configs.QueueConfig, parent *Queue) (*Queue, error)
// pull the properties from the parent that should be set on the child
sq.mergeProperties(parent.getProperties(), conf.Properties)
sq.UpdateQueueProperties()
sq.QueuePath = parent.QueuePath + configs.DOT + sq.Name
err := parent.addChildQueue(sq)
if err != nil {
return nil, errors.Join(errors.New("configured queue creation failed: "), err)
Expand Down

0 comments on commit ebb8b1c

Please sign in to comment.