Skip to content

Commit

Permalink
Fix pylama
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel committed Apr 29, 2024
1 parent 4fae655 commit f4157d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions beeflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("""
Expand Down

0 comments on commit f4157d0

Please sign in to comment.