Skip to content

Commit

Permalink
fix external service
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Mar 2, 2024
1 parent 6d34c0e commit f0ff414
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions hypha/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,13 +487,10 @@ async def launch_external_services(
async def ready_function(p):
if check_services:
for service_id in check_services:
try:
await server.get_service(
{"id": service_id, "workspace": server.config["workspace"]}
)
except Exception as e:
if logger:
logger.info(f"Service {service_id} not ready: {e}")
svc = await server.get_service(
{"id": service_id, "workspace": server.config["workspace"]}
)
if not svc:
return False
return True
if check_url:
Expand Down

0 comments on commit f0ff414

Please sign in to comment.