File tree Expand file tree Collapse file tree
dstack/_internal/server/services/runs
tests/_internal/server/background/scheduled_tasks Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 1010from dstack ._internal .core .models .runs import JobStatus
1111from 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
1616from dstack ._internal .server .testing .common import (
1717 create_instance ,
1818 create_job ,
You can’t perform that action at this time.
0 commit comments