From f4157d0f22ed96631261b9af3d741053dc1432e0 Mon Sep 17 00:00:00 2001 From: Patricia Grubel Date: Mon, 29 Apr 2024 12:32:17 -0600 Subject: [PATCH] Fix pylama --- beeflow/client/core.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/beeflow/client/core.py b/beeflow/client/core.py index a62363477..7e295b8b1 100644 --- a/beeflow/client/core.py +++ b/beeflow/client/core.py @@ -442,11 +442,8 @@ def stop(query='yes'): """Stop the current running beeflow daemon.""" # Check workflow states; warn if there are active states, pause running workflows workflow_list = bee_client.get_wf_list() - states_of_concern = {'Running', 'Initializing', 'Waiting'} - if {item for row in workflow_list for item in row}.intersection(states_of_concern): - concern = True - else: - concern = False + concern_states = {'Running', 'Initializing', 'Waiting'} + concern = {item for row in workflow_list for item in row}.intersection(concern_states) # For the interactive case if query == 'yes' and concern: ans = input("""