Mercurial > libervia-backend
comparison libervia/backend/core/launcher.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | b26339343076 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
199 pid_dir = Path(config.get("DEFAULT", "pid_dir")).expanduser() | 199 pid_dir = Path(config.get("DEFAULT", "pid_dir")).expanduser() |
200 pid_dir.mkdir(parents=True, exist_ok=True) | 200 pid_dir.mkdir(parents=True, exist_ok=True) |
201 return pid_dir / f"{self.APP_NAME_FILE}.pid" | 201 return pid_dir / f"{self.APP_NAME_FILE}.pid" |
202 | 202 |
203 def wait_for_service( | 203 def wait_for_service( |
204 self, | 204 self, service_host: str, service_port: int, timeout: int, service_name: str |
205 service_host: str, | |
206 service_port: int, | |
207 timeout: int, | |
208 service_name: str | |
209 ) -> None: | 205 ) -> None: |
210 """Waits for a network service to become available. | 206 """Waits for a network service to become available. |
211 | 207 |
212 @param service_host: The hostname or IP address of the service. | 208 @param service_host: The hostname or IP address of the service. |
213 @param service_port: The port number of the service. | 209 @param service_port: The port number of the service. |