File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
src/frequenz/sdk/timeseries Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1414
1515## Bug Fixes
1616
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]:
399399
400400 async def stop (self ) -> None :
401401 """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
217217
218218 async def stop (self ) -> None :
219219 """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.
221226
222227 @property
223228 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
179179
180180 async def stop (self ) -> None :
181181 """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.
183188
184189 @property
185190 def _system_power_bounds (self ) -> ReceiverFetcher [SystemBounds ]:
You can’t perform that action at this time.
0 commit comments