fix(smoke): topology API 변경 반영 — snapshot_queue→slots_queue, assets 키 제거
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ INST = sys.argv[1] if len(sys.argv) > 1 else "default"
|
||||
|
||||
def main() -> int:
|
||||
mq = RabbitMQTransport(URL, timeout=10.0)
|
||||
snap_q = topology.snapshot_queue(INST)
|
||||
snap_q = topology.slots_queue(INST)
|
||||
intent_q = topology.intent_queue(INST)
|
||||
|
||||
def snap():
|
||||
@@ -54,8 +54,8 @@ def main() -> int:
|
||||
print("=== 1) snapshot RPC ===")
|
||||
s = snap()
|
||||
slots = s["slots"]
|
||||
print(f"assets={len(s['assets'])} slots={len(slots)} "
|
||||
f"available_slots={s['available_slots']}")
|
||||
available = [x for x in slots if x["status"] == "inactive" and not x["universe_detached"]]
|
||||
print(f"slots={len(slots)} available_slots={len(available)}")
|
||||
inactive = [x for x in slots if x["status"] == "inactive"
|
||||
and not x["universe_detached"]]
|
||||
if not inactive:
|
||||
|
||||
Reference in New Issue
Block a user