From 6c3390606422f40104d28bf3c5ccf59053e02628 Mon Sep 17 00:00:00 2001 From: matdenkas Date: Mon, 21 Oct 2024 17:22:23 -0500 Subject: [PATCH] Fixing bug where model runs always reports success --- src/semaphoreRunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/semaphoreRunner.py b/src/semaphoreRunner.py index 3d7522e..c9ac951 100644 --- a/src/semaphoreRunner.py +++ b/src/semaphoreRunner.py @@ -154,7 +154,7 @@ def handle_failed_prediction( # Attempt to store both that in the outputs table and information about the model_run series_storage = series_storage_factory() - inserted_results, _ = series_storage.insert_output_and_model_run(result_series, execution_time, 0) + inserted_results, _ = series_storage.insert_output_and_model_run(result_series, execution_time, error_code) log(inserted_results) log(inserted_results.data if inserted_results is not None else '')