Skip to content

Commit 0df76fc

Browse files
committed
Introduce a delay between restarts of ComponentPoolStatusTracker
This is never expected to happen, because the task only reads from channels and writes to channels, and unless there's a bug in the SDK that closes the channels, the task won't die. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 0e19bf4 commit 0df76fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frequenz/sdk/actor/power_distributing/_component_pool_status_tracker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ async def _run(self) -> None:
117117
_logger.error(
118118
"ComponentPoolStatus failed with error: %s. Restarting.", err
119119
)
120+
await asyncio.sleep(1.0)
120121

121122
async def _update_status(self) -> None:
122123
async for status in self._merged_status_receiver:

0 commit comments

Comments
 (0)