Skip to content

Commit

Permalink
Merge pull request #52 from kaspar030/handle_missing_runtime
Browse files Browse the repository at this point in the history
common.py: handle missing "runtime" job result field
  • Loading branch information
maribu authored Jan 17, 2024
2 parents a336bc1 + 3d630f7 commit 591eba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def parse_job(job):
result = {}
result["status"] = job["result"]["status"] in { 0, "0", "pass" }
result["worker"] = job["result"]["worker"]
result["runtime"] = float(job["result"]["runtime"])
result["runtime"] = float(job["result"].get("runtime", 0))
result["output"] = job["result"]["output"]
result["name"] = os.path.join(
*job["result"]["body"]["command"].split()[1:]
Expand Down

0 comments on commit 591eba9

Please sign in to comment.