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

Commit 77e4f85

Browse files
committed
add overall mergability to health
1 parent 6e0e061 commit 77e4f85

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)