Skip to content

Commit

Permalink
more pylama issues ahh
Browse files Browse the repository at this point in the history
  • Loading branch information
kchilleri committed Oct 1, 2024
1 parent bb162ab commit 8eb03f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beeflow/client/bee_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def setup_hostname(start_hn):
db.info.set_hostname(start_hn)


def check_hostname(curr_hn, stop = False):
def check_hostname(curr_hn, stop=False):
"""Check current front end name matches the one beeflow was started on."""
db = bdb.connect_db(client_db, db_path())
start_hn = db.info.get_hostname()
Expand Down
3 changes: 1 addition & 2 deletions beeflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def __init__(self, mgr, base_components):
def loop(self):
"""Run the main loop."""
print(f'Running on {socket.gethostname()}')
# add {socket.gethostname} to client database here??
self.mgr.run(self.base_components)
with cli_connection.server(paths.beeflow_socket()) as server:
while not self.quit:
Expand Down Expand Up @@ -488,7 +487,7 @@ def stop(query='yes'):
beeflow_log = paths.log_fname('beeflow')
if query == "yes":
print(f'Beeflow has stopped. Check the log at "{beeflow_log}".')
bee_client.check_hostname(stop_hn, stop = True)
bee_client.check_hostname(stop_hn, stop=True)


def archive_dir(dir_to_archive):
Expand Down

0 comments on commit 8eb03f5

Please sign in to comment.