fix(node2): Use node_cache router_healthy for DAGI Router agents status
- Fix get_dagi_router_agents to use router_healthy from node_cache first - Fallback to direct API call only if cache is unavailable - This fixes NODE2 agents showing as 'stale' when router is actually healthy - Fix CITY_SERVICE_URL in scripts (remove /api/city, use /api)
This commit is contained in:
@@ -26,7 +26,7 @@ export NODE_NAME="НОДА2"
|
||||
export NODE_ENVIRONMENT="development"
|
||||
export NODE_ROLES="gpu,ai_runtime"
|
||||
export NODE_HOSTNAME="$(hostname)"
|
||||
export CITY_SERVICE_URL="https://daarion.space/api/city"
|
||||
export CITY_SERVICE_URL="https://daarion.space/api"
|
||||
export NODE_SWAPPER_URL="http://localhost:8890"
|
||||
export NODE_ROUTER_URL="http://localhost:9102"
|
||||
export GUARDIAN_INTERVAL="60"
|
||||
@@ -38,6 +38,17 @@ echo " Swapper URL: $NODE_SWAPPER_URL"
|
||||
echo " Router URL: $NODE_ROUTER_URL"
|
||||
echo ""
|
||||
|
||||
# Export environment variables for node-guardian-loop
|
||||
export NODE_ID
|
||||
export NODE_NAME
|
||||
export NODE_ENVIRONMENT
|
||||
export NODE_ROLES
|
||||
export NODE_HOSTNAME
|
||||
export CITY_SERVICE_URL
|
||||
export NODE_SWAPPER_URL
|
||||
export NODE_ROUTER_URL
|
||||
export GUARDIAN_INTERVAL
|
||||
|
||||
# Run node-guardian-loop
|
||||
python3 "$PROJECT_ROOT/scripts/node-guardian-loop.py" \
|
||||
--node-id "$NODE_ID" \
|
||||
|
||||
Reference in New Issue
Block a user