Skip to content

Commit

Permalink
Fixing bug where model runs always reports success
Browse files Browse the repository at this point in the history
  • Loading branch information
matdenkas committed Oct 21, 2024
1 parent 8ffbe7b commit 6c33906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/semaphoreRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '')
Expand Down

0 comments on commit 6c33906

Please sign in to comment.