From 6db172d2389494644b0a57508a4bd17f5f78d152 Mon Sep 17 00:00:00 2001 From: Younes Strittmatter Date: Mon, 5 Jun 2023 11:17:43 -0400 Subject: [PATCH] bug: fix new functionality and delete app --- .../experimentation_manager/firebase/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/autora/experiment_runner/experimentation_manager/firebase/__init__.py b/src/autora/experiment_runner/experimentation_manager/firebase/__init__.py index 8985c07..c26fb02 100644 --- a/src/autora/experiment_runner/experimentation_manager/firebase/__init__.py +++ b/src/autora/experiment_runner/experimentation_manager/firebase/__init__.py @@ -348,7 +348,6 @@ def check_firebase_status( for key, value in meta_data.items(): # return available if there are conditions that haven't been started if value["start_time"] is None: - firebase_admin.delete_app(app) available = True else: if not value["finished"]: @@ -357,12 +356,11 @@ def check_firebase_status( # check weather the started condition has timed out, if so, reset start_time and # set available True if time_from_started > time_out: - firebase_admin.delete_app(app) doc_ref_meta.update({key: {"start_time": None, "finished": False}}) available = True else: finished = False - firebase_admin.delete_app() + firebase_admin.delete_app(app) if available: return 'available' if finished: