From d1d89a7f6231205c6e5014dbffb6165745ce8a79 Mon Sep 17 00:00:00 2001 From: Jake Tronge Date: Mon, 1 Apr 2024 11:11:58 -0600 Subject: [PATCH] Fix beeflow config new error Moves call into function body to avoid error with bc.get(..) calls. --- beeflow/client/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beeflow/client/core.py b/beeflow/client/core.py index 060674b46..74fb71c51 100644 --- a/beeflow/client/core.py +++ b/beeflow/client/core.py @@ -30,8 +30,6 @@ from beeflow.common.db.bdb import connect_db from beeflow.wf_manager.common import dep_manager -db_path = wf_utils.get_db_path() - class ComponentManager: """Component manager class.""" @@ -467,6 +465,7 @@ def stop(query='yes'): def kill_active_workflows(active_states, workflow_list): """Kill workflows with active states.""" + db_path = wf_utils.get_db_path() db = connect_db(wfm_db, db_path) success = True for name, wf_id, state in workflow_list: