Skip to content

Commit ade94d0

Browse files
Set total_elapsed_seconds to ERR on parse failure
Address review feedback: add total_elapsed_seconds = "ERR" in the failed parsing case for consistency with total_time. Signed-off-by: Harsh Kumar Patwa <harshkumarpatwa@gmail.com> Signed-off-by: Harsh Kumar <harshkumar3446@gmail.com>
1 parent 44e169e commit ade94d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow/util/genMetrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ def extract_metrics(
347347

348348
if failed:
349349
metrics_dict["total_time"] = "ERR"
350+
metrics_dict["total_elapsed_seconds"] = "ERR"
350351
else:
351352
metrics_dict["total_time"] = str(total)
352353
metrics_dict["total_elapsed_seconds"] = total.total_seconds()

0 commit comments

Comments
 (0)