Skip to content

Commit

Permalink
Fix beeflow config new error
Browse files Browse the repository at this point in the history
Moves call into function body to avoid error with bc.get(..) calls.
  • Loading branch information
jtronge committed Apr 1, 2024
1 parent 88fe045 commit d1d89a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions beeflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d1d89a7

Please sign in to comment.