Skip to content

Commit

Permalink
Move run_id, batch_id, run_name, timestamp out of stats object
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Jul 14, 2021
1 parent acc7cd1 commit 7d372d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion conbench/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,13 @@ def record(self, result, name, **kwargs):
result.get("times", []),
result.get("time_unit", "s"),
)

run_id = options.get("run_id")
if run_id is None:
run_id = self.batch_id

benchmark = {
"run_id": options.get("run_id", self.batch_id),
"run_id": run_id,
"batch_id": self.batch_id,
"timestamp": _now_formatted(),
"stats": stats,
Expand Down

0 comments on commit 7d372d4

Please sign in to comment.