Ship production deployment and runtime observability
This commit is contained in:
parent
267665bb35
commit
775dd61963
1 changed files with 3712 additions and 175 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue