MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / probe

Method probe

supervisor/client/src/lib.rs:148–155  ·  view source on GitHub ↗
(&self, timeout: Duration)

Source from the content-addressed store, hash-verified

146 }
147
148 pub async fn probe(&self, timeout: Duration) -> Result<()> {
149 let response = tokio::time::timeout(timeout, self.ping()).await;
150 if matches!(response, Ok(Ok(_))) {
151 Ok(())
152 } else {
153 anyhow::bail!("failed to probe supervisor")
154 }
155 }
156
157 pub async fn clear(&self) -> Result<()> {
158 self.http_request("POST", "/clear", ()).await

Callers 1

start_and_connect_udsMethod · 0.80

Calls 1

pingMethod · 0.80

Tested by

no test coverage detected