From 9cb9d272f09f00cdfcb3157f8b979f8cc4c0b8f1 Mon Sep 17 00:00:00 2001 From: Andrew Ferlitsch Date: Tue, 31 Oct 2023 14:00:07 -0700 Subject: [PATCH] fix: last date ran (#2451) --- .cloud-build/execute_changed_notebooks_helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cloud-build/execute_changed_notebooks_helper.py b/.cloud-build/execute_changed_notebooks_helper.py index 2b05fb729..1fe360352 100755 --- a/.cloud-build/execute_changed_notebooks_helper.py +++ b/.cloud-build/execute_changed_notebooks_helper.py @@ -120,6 +120,8 @@ def load_results(results_bucket: str, if notebook in accumulative_results: accumulative_results[notebook]['passed'] += build_results[notebook]['passed'] accumulative_results[notebook]['failed'] += build_results[notebook]['failed'] + if accumulative_results[notebook]['last_time_ran'] > time_created: + accumulative_results[notebook]['last_time_ran'] = time_created else: accumulative_results[notebook] = build_results[notebook] accumulative_results[notebook]['failed_on_latest_run'] = build_results[notebook]['failed']