fix(kanban): gate gateway notifier polling

This commit is contained in:
fangliquanflq
2026-09-12 03:41:15 +08:00
committed by Teknium
parent 9541317aee
commit 2710d85914
4 changed files with 45 additions and 7 deletions
+12
View File
@@ -68,6 +68,18 @@ class GatewayKanbanWatchersMixin:
dispatcher respawned a crashed task). All SQLite work runs in a thread;
one tick's failure never stops the next.
"""
try:
from hermes_cli.config import load_config as _load_config
cfg = _load_config()
kanban_cfg = cfg.get("kanban", {}) if isinstance(cfg, dict) else {}
except Exception as exc:
logger.warning("kanban notifier: cannot load config (%s); continuing enabled", exc)
kanban_cfg = {}
if not kanban_cfg.get("notify_in_gateway", True):
logger.info("kanban notifier: disabled via config kanban.notify_in_gateway=false")
return
from gateway.config import Platform as _Platform
try:
from hermes_cli import kanban_db as _kb