We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db59ae commit 82e131bCopy full SHA for 82e131b
src/frequenz/sdk/actor/_actor.py
@@ -104,7 +104,16 @@ async def _run_loop(self) -> None:
104
except asyncio.CancelledError:
105
_logger.info("Actor %s: Cancelled.", self)
106
raise
107
- except Exception: # pylint: disable=broad-except
+ except Exception as exc: # pylint: disable=broad-except
108
+ if isinstance(exc, RuntimeError) and "no running event loop" in str(
109
+ exc
110
+ ):
111
+ _logger.exception(
112
+ "Something went wrong, no running event loop,"
113
+ " not trying to restart %s again.",
114
+ self,
115
+ )
116
+ break
117
if self._is_cancelled:
118
# If actor was cancelled, but any tasks have failed with an exception
119
# other than asyncio.CancelledError, those exceptions are combined
0 commit comments