Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bench/deepswe/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def row(d):
c = sqlite3.connect(os.path.join(d, "graph.db"))
columns = {r[1] for r in c.execute("pragma table_info(nodes)")}
column = "ran" if "ran" in columns else "subharness"
if column not in ("ran", "subharness"):
raise ValueError(f"unexpected column name: {column!r}")
meta["workers_ran"] = sorted({r[0] for r in c.execute(
f"select {column} from nodes where coalesce({column},'') != ''")})
meta["workers_from_ask"] = column == "subharness"
Expand Down