File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ impl Profile {
136
136
+ self . idle_runner_count ( runners)
137
137
+ self . reserved_runner_count ( runners)
138
138
+ self . busy_runner_count ( runners)
139
+ + self . done_or_unregistered_runner_count ( runners)
139
140
}
140
141
141
142
pub fn started_or_crashed_runner_count ( & self , runners : & Runners ) -> usize {
@@ -162,6 +163,12 @@ impl Profile {
162
163
. count ( )
163
164
}
164
165
166
+ pub fn done_or_unregistered_runner_count ( & self , runners : & Runners ) -> usize {
167
+ self . runners ( runners)
168
+ . filter ( |( _id, runner) | runner. status ( ) == Status :: DoneOrUnregistered )
169
+ . count ( )
170
+ }
171
+
165
172
pub fn excess_idle_runner_count ( & self , runners : & Runners ) -> usize {
166
173
// Healthy runners beyond the target count are excess runners.
167
174
let excess = if self . healthy_runner_count ( runners) > self . target_runner_count ( ) {
You can’t perform that action at this time.
0 commit comments