Skip to content

The agent that grows with you

fix(dashboard): run gateway-liveness probes off the dashboard event loop

kshitijk4poor91995df83d3c
diff --git a/hermes_cli/web_routers/messaging.py b/hermes_cli/web_routers/messaging.py
index 1c51889393c..09acda2c3f3 100644
--- a/hermes_cli/web_routers/messaging.py
+++ b/hermes_cli/web_routers/messaging.py
@@ -879,7 +879,7 @@ async def update_messaging_platform(platform_id: str, body: MessagingPlatformUpd
target_profile = body.profile or profile
if body.enabled:
- conflict = _multiplex_port_binding_conflict(platform_id, target_profile)
+ conflict = await asyncio.to_thread(_multiplex_port_binding_conflict, platform_id, target_profile)
if conflict:
# Reject BEFORE any .env/config.yaml write so the profile stays
# loadable by the multiplexed gateway.
diff --git a/hermes_cli/web_server_cron.py b/hermes_cli/web_server_cron.py
index 71a8aa65192..60e30dba533 100644
--- a/hermes_cli/web_server_cron.py
+++ b/hermes_cli/web_server_cron.py
@@ -2,6 +2,7 @@
gateway forwarding.
"""
+import asyncio
import contextlib
import logging
import inspect
@@ -386,7 +387,7 @@ async def _forward_cron_fire_to_gateway(
drops the fire with 200: retrying into an operator-stopped gateway can never succeed.
"""
_profile_name, home = _cron_profile_home(profile)
- url = _gateway_fire_endpoint(_profile_name, home)
+ url = await asyncio.to_thread(_gateway_fire_endpoint, _profile_name, home)
import httpx
try:
async with httpx.AsyncClient(timeout=10.0) as client: