Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 4df1ac9

Browse files
authored
Merge pull request #1200 from lavalamp/ff6
add overall mergability to health
2 parents 515b90f + 77e4f85 commit 4df1ac9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mungegithub/mungers/submit-queue.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ type submitQueueStatus struct {
9999
// of time for the queue as a whole and the individual jobs will then be
100100
// NumStable[PerJob] / TotalLoops.
101101
type submitQueueHealth struct {
102-
TotalLoops int
103-
NumStable int
104-
NumStablePerJob map[string]int
102+
TotalLoops int
103+
NumStable int
104+
NumStablePerJob map[string]int
105+
MergePossibleNow bool
105106
}
106107

107108
// Generate health information using a queue of healthRecords. The bools are
@@ -444,6 +445,7 @@ func (sq *SubmitQueue) updateHealth() {
444445
sq.health.TotalLoops = len(sq.healthHistory)
445446
sq.health.NumStable = 0
446447
sq.health.NumStablePerJob = map[string]int{}
448+
sq.health.MergePossibleNow = stable
447449
for _, record := range sq.healthHistory {
448450
if record.Overall {
449451
sq.health.NumStable += 1

0 commit comments

Comments
 (0)