Skip to content

Commit

Permalink
reformat with black
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Nov 20, 2024
1 parent 2609d75 commit f60b429
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions rdagent/app/utils/health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def check_docker() -> None:
except docker.errors.DockerException as e:
logger.error(f"An error occurred: {e}")
logger.warning(
f"Docker status is exception, please check the docker configuration or reinstall it.
Refs: https://docs.docker.com/engine/install/ubuntu/."
f"Docker status is exception, please check the docker configuration or reinstall it. Refs: https://docs.docker.com/engine/install/ubuntu/."
)


Expand All @@ -48,13 +47,11 @@ def check_and_list_free_ports(start_port=19899, max_ports=10) -> None:
if not is_port_in_use(port):
free_ports.append(port)
logger.warning(
f"Port 19899 is occupied,
please replace it with an available port when running the `rdagent ui` command.
Available ports: {free_ports}"
f"Port 19899 is occupied, please replace it with an available port when running the `rdagent ui` command. Available ports: {free_ports}"
)
else:
logger.info(f"Port 19899 is not occupied, you can run the `rdagent ui` command")


def health_check():
"""
Expand Down

0 comments on commit f60b429

Please sign in to comment.