From 843b14fe994e3fe29bf75bf24e7e4e364eeee61c Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 7 Aug 2024 16:23:13 +0200 Subject: [PATCH] keep bin in local cache for go even in cloud --- backend/windmill-worker/src/go_executor.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/windmill-worker/src/go_executor.rs b/backend/windmill-worker/src/go_executor.rs index 3a71170cb7..3747ecf9fd 100644 --- a/backend/windmill-worker/src/go_executor.rs +++ b/backend/windmill-worker/src/go_executor.rs @@ -301,12 +301,6 @@ func Run(req Req) (interface{{}}, error){{ ) .await?; - if cache && *CLOUD_HOSTED { - //do not keep the binary in the cache if it is cloud hosted to avoid filling up the disk - if let Err(e) = tokio::fs::remove_file(&bin_path).await { - tracing::error!("could not remove {bin_path} from go cache: {e:?}"); - } - } read_result(job_dir).await }