Commit f8f3069
committed
Retry only once on PartialFailure
When the PowerManager receives a `PartialFailure`, in many cases,
resending the request would fix it, because the power distributor
would have new information on how to redistribute differently.
But this doesn't always work, for example in single battery locations
or if all batteries are in an UNCERTAIN state, in which case the power
distributor has to retry with the same batteries.
For this reason, if we don't have a limit on such retries from the
PowerManager, we'd get into an infinite loop that doesn't have any
delay inbetween retries.
Signed-off-by: Sahas Subramanian <[email protected]>1 parent a29e600 commit f8f3069
File tree
1 file changed
+12
-3
lines changed- src/frequenz/sdk/actor/_power_managing
1 file changed
+12
-3
lines changedLines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | | - | |
240 | | - | |
241 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
242 | 251 | | |
0 commit comments