Commit ffa8729
committed
Force bq.enter()/bq.leave() to be called if the scheduler is idle
Once the final workers shut down, bq.enter()/bq.leave() won't end up
getting called. This means that they only get removed from the scheduler
the next time any RPC is called (e.g., when workers start to come online
again). This unfortunately causes Prometheus metrics to be incorrect in
the meantime.1 parent 8a43a77 commit ffa8729
File tree
2 files changed
+28
-1
lines changed- cmd/bb_scheduler
- pkg/scheduler
2 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1261 | 1270 | | |
1262 | 1271 | | |
1263 | 1272 | | |
| |||
0 commit comments