Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(missions): say why three capacity handlers stay quiet (AP-30)

Dennis Heide de Ramirez90ff3adbaaa5
diff --git a/jarvis/missions/capacity.py b/jarvis/missions/capacity.py
index 8adc0dcaf9..fb1c0abae6 100644
--- a/jarvis/missions/capacity.py
+++ b/jarvis/missions/capacity.py
@@ -187,7 +187,7 @@ def read_checkpoint(mission_dir: Path) -> dict[str, Any] | None:
path = mission_dir / CHECKPOINT_NAME
try:
data = json.loads(path.read_text(encoding="utf-8"))
- except FileNotFoundError:
+ except FileNotFoundError: # no checkpoint is a normal answer, not a failure
return None
except (OSError, ValueError):
log.warning("capacity: unreadable checkpoint %s", path, exc_info=True)
diff --git a/jarvis/missions/kontrollierer/orchestrator.py b/jarvis/missions/kontrollierer/orchestrator.py
index b99a419456..fc9f6320d6 100644
--- a/jarvis/missions/kontrollierer/orchestrator.py
+++ b/jarvis/missions/kontrollierer/orchestrator.py
@@ -3097,7 +3097,7 @@ class Kontrollierer:
return True
try:
worker = await asyncio.to_thread(self._worker_factory, open_steps[0])
- except WorkerCapacityUnavailable:
+ except WorkerCapacityUnavailable: # still no capacity: stay parked, ask again next tick
return False
except Exception: # noqa: BLE001 - a broken probe means "not yet", logged
logger.warning(
diff --git a/jarvis/ui/web/server.py b/jarvis/ui/web/server.py
index 174d051af5..e37203e5bf 100644
--- a/jarvis/ui/web/server.py
+++ b/jarvis/ui/web/server.py
@@ -4217,7 +4217,7 @@ class WebServer:
resume_task.cancel()
try:
await asyncio.wait_for(resume_task, timeout=2.0)
- except (TimeoutError, asyncio.CancelledError):
+ except (TimeoutError, asyncio.CancelledError): # expected while stopping the timer
pass
self._missions_resume_task = None