Skip to content

Commit fac261f

Browse files
Bihan  RanaBihan  Rana
authored andcommitted
Minor Update
1 parent 9308e0c commit fac261f

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

src/dstack/_internal/server/services/runs/router_worker_sync.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,7 @@ async def _get_worker(
555555
# Router workers list is empty and no connection_mode discovered.
556556
async with get_service_replica_tunnel(job_model) as uds_path:
557557
async with get_service_replica_http_client_over_uds(uds_path) as client:
558-
try:
559-
result = await _probe_http_worker(client, worker_url=http_worker_url)
560-
except RemoteProtocolError as e:
561-
logger.debug(
562-
"HTTP server_info probe failed for %s (trying gRPC): %r",
563-
http_worker_url,
564-
e,
565-
)
566-
result = {"status": "not_ready", "worker": None}
558+
result = await _probe_http_worker(client, worker_url=http_worker_url)
567559
if result["status"] == "ready":
568560
return result
569561
async with get_service_replica_grpc_channel_over_uds(uds_path) as channel:

src/tests/_internal/server/background/scheduled_tasks/test_probes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from dstack._internal.core.models.runs import JobStatus
1111
from dstack._internal.server.background.scheduled_tasks.probes import (
1212
PROCESSING_OVERHEAD_TIMEOUT,
13-
SSH_CONNECT_TIMEOUT,
1413
process_probes,
1514
)
15+
from dstack._internal.server.services.jobs.job_replica_tunnel import SSH_CONNECT_TIMEOUT
1616
from dstack._internal.server.testing.common import (
1717
create_instance,
1818
create_job,

0 commit comments

Comments
 (0)