fix: skip journal scheduling when the event loop is not running

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 15:39:42 -04:00
co-authored by Claude Fable 5
parent 600e68b509
commit 00fdbcaa5b
+1 -1
View File
@@ -139,7 +139,7 @@ def eventlog(host, lvl, m, service=None):
def _journal_event(msg: dict):
"""Schedule an async write of *msg* to the events journal (no-op without a loop)."""
if _loop is None:
if _loop is None or not _loop.is_running():
return
from . import journal as journal_mod
ej = journal_mod.get_events_journal()