File tree 4 files changed +20
-4
lines changed
src/frequenz/sdk/timeseries
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 14
14
15
15
## Bug Fixes
16
16
17
- <!-- Here goes notable bug fixes that are worth a special mention or explanation -->
17
+ - Fixes a bug where battery pool metrics would stop for one actor when another actor managing the same components stops its pool.
18
+
Original file line number Diff line number Diff line change @@ -399,4 +399,9 @@ def _system_power_bounds(self) -> ReceiverFetcher[SystemBounds]:
399
399
400
400
async def stop (self ) -> None :
401
401
"""Stop all tasks and channels owned by the BatteryPool."""
402
- await self ._pool_ref_store .stop ()
402
+ # This was closing the pool_ref_store, which is not correct, because those are
403
+ # shared.
404
+ #
405
+ # This method will do until we have a mechanism to track the resources created
406
+ # through it. It can also eventually cleanup the pool_ref_store, when it is
407
+ # holding the last reference to it.
Original file line number Diff line number Diff line change @@ -217,7 +217,12 @@ def power_distribution_results(self) -> ReceiverFetcher[_power_distributing.Resu
217
217
218
218
async def stop (self ) -> None :
219
219
"""Stop all tasks and channels owned by the EVChargerPool."""
220
- await self ._pool_ref_store .stop ()
220
+ # This was closing the pool_ref_store, which is not correct, because those are
221
+ # shared.
222
+ #
223
+ # This method will do until we have a mechanism to track the resources created
224
+ # through it. It can also eventually cleanup the pool_ref_store, when it is
225
+ # holding the last reference to it.
221
226
222
227
@property
223
228
def _system_power_bounds (self ) -> ReceiverFetcher [SystemBounds ]:
Original file line number Diff line number Diff line change @@ -179,7 +179,12 @@ def power_distribution_results(self) -> ReceiverFetcher[_power_distributing.Resu
179
179
180
180
async def stop (self ) -> None :
181
181
"""Stop all tasks and channels owned by the PVPool."""
182
- await self ._pool_ref_store .stop ()
182
+ # This was closing the pool_ref_store, which is not correct, because those are
183
+ # shared.
184
+ #
185
+ # This method will do until we have a mechanism to track the resources created
186
+ # through it. It can also eventually cleanup the pool_ref_store, when it is
187
+ # holding the last reference to it.
183
188
184
189
@property
185
190
def _system_power_bounds (self ) -> ReceiverFetcher [SystemBounds ]:
You can’t perform that action at this time.
0 commit comments