From 0893ce103ffcfbcb037c9e2ab851e480b61b3735 Mon Sep 17 00:00:00 2001 From: pyranota <92104930+pyranota@users.noreply.github.com> Date: Mon, 11 Aug 2025 19:58:40 +0200 Subject: [PATCH] fix: fix v1.523.0 rust sdk build (#6363) Signed-off-by: pyranota --- rust-client/src/client.rs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/rust-client/src/client.rs b/rust-client/src/client.rs index 947ca8bc98..4e3fe13114 100644 --- a/rust-client/src/client.rs +++ b/rust-client/src/client.rs @@ -415,6 +415,7 @@ impl Windmill { path: None, description: None, value: Some(value), + resource_type: Some(resource_type.to_owned()), }, ) .await?; @@ -825,8 +826,14 @@ impl Windmill { } async fn get_job_status_inner<'a>(&'a self, job_id: &'a str) -> Result { - let job = - job_api::get_job(&self.client_config, &self.workspace, job_id, Some(true), Some(true)).await?; + let job = job_api::get_job( + &self.client_config, + &self.workspace, + job_id, + Some(true), + Some(true), + ) + .await?; Ok(match job { windmill_api::models::Job::JobOneOf(..) => JobStatus::Completed, @@ -926,8 +933,14 @@ impl Windmill { ) -> MaybeFuture<'a, Result<(), SdkError>> { let f = async move { let job_id = job_id.unwrap_or(var("WM_JOB_ID")?); - let job = - job_api::get_job(&self.client_config, &self.workspace, &job_id, Some(true), Some(true)).await?; + let job = job_api::get_job( + &self.client_config, + &self.workspace, + &job_id, + Some(true), + Some(true), + ) + .await?; let flow_id = match job { windmill_api::models::Job::JobOneOf(job) => job.parent_job,