Skip to content

Commit 3d630f7

Browse files
committed
common.py: handle missing "runtime" job result field
1 parent a336bc1 commit 3d630f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parse_job(job):
2323
result = {}
2424
result["status"] = job["result"]["status"] in { 0, "0", "pass" }
2525
result["worker"] = job["result"]["worker"]
26-
result["runtime"] = float(job["result"]["runtime"])
26+
result["runtime"] = float(job["result"].get("runtime", 0))
2727
result["output"] = job["result"]["output"]
2828
result["name"] = os.path.join(
2929
*job["result"]["body"]["command"].split()[1:]

0 commit comments

Comments
 (0)