Complete phase two benchmarks, plot previews and static export workflow

This commit is contained in:
2026-09-07 02:54:52 +08:00
parent 95095197df
commit 89df10bc4e
59 changed files with 2535 additions and 83 deletions
+9
View File
@@ -352,3 +352,12 @@ async def wait_for_run(run_id: str) -> BenchmarkRun:
if task is not None:
await task
return _runs.get(run_id)
async def shutdown():
loop = asyncio.get_running_loop()
active = {rid: task for rid, task in _tasks.items() if not task.done() and task.get_loop() is loop}
for rid in active:
flag = _cancel_flags.get(rid)
if flag: flag.set()
await asyncio.gather(*active.values(), return_exceptions=True)