-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Log output for LocalQueue and ClusterQueue #3605
base: main
Are you sure you want to change the base?
Changes from 3 commits
f4df8fe
fa8c077
fd7bc6a
c77a3a1
449e24e
84d415a
27af647
bf0d9e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -329,12 +329,14 @@ func (m *Manager) AddOrUpdateWorkloadWithoutLock(w *kueue.Workload) bool { | |||||
qKey := workload.QueueKey(w) | ||||||
q := m.localQueues[qKey] | ||||||
if q == nil { | ||||||
fmt.Println("LocalQueue for workload not found") | ||||||
return false | ||||||
} | ||||||
wInfo := workload.NewInfo(w, m.workloadInfoOptions...) | ||||||
q.AddOrUpdate(wInfo) | ||||||
cq := m.hm.ClusterQueues[q.ClusterQueue] | ||||||
if cq == nil { | ||||||
fmt.Println("ClusterQueue for workload not found") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if we do this then we have to change the type of the function cause it was returning a bool and after adding this it should return error .. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay! |
||||||
return false | ||||||
} | ||||||
cq.PushOrUpdate(wInfo) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay!