Ship production deployment and runtime observability

This commit is contained in:
ms2k 2026-07-18 04:22:14 +09:00
commit 775dd61963

View file

@ -45,6 +45,17 @@ impl WorkerApiClient {
.await
}
pub async fn check(&self) -> Result<(), WorkerError> {
let url = format!("{}/internal/v1/health/ready", self.base_url);
self.client
.get(url)
.send()
.await
.map_err(|_| WorkerError::ApiUnavailable)
.and_then(classify)
.map(|_| ())
}
pub async fn activate(
&self,
attempt_id: &OpaqueId,