fix cross-process scenario switching and stale flights on scenario change
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2026-04-16 01:42:10 -03:00
parent 22c924d3b0
commit e03ac3982a
5 changed files with 13 additions and 9 deletions

View File

@@ -15,7 +15,8 @@ class ScenarioManager:
"""Manages the active scenario. Singleton — all MCP servers share one instance."""
def __init__(self) -> None:
self._active_id: str = "weather_disruption_ord"
import os
self._active_id: str = os.getenv("ACTIVE_SCENARIO") or os.getenv("DEFAULT_SCENARIO") or "weather_disruption_ord"
self._cache: dict[str, Any] = {}
@property