keep bin in local cache for go even in cloud

This commit is contained in:
Ruben Fiszel
2024-08-07 16:23:13 +02:00
parent b60f42e387
commit 843b14fe99
@@ -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
}