From 204e2fafda681347813ab91f96cee4194db2e156 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 24 Jul 2024 15:23:06 +0200 Subject: [PATCH] fix: delete buntar if any issue while creating it --- backend/windmill-worker/src/bun_executor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/windmill-worker/src/bun_executor.rs b/backend/windmill-worker/src/bun_executor.rs index ea0597575d..dc6f017231 100644 --- a/backend/windmill-worker/src/bun_executor.rs +++ b/backend/windmill-worker/src/bun_executor.rs @@ -589,6 +589,7 @@ pub async fn handle_bun_job( "shared".to_string(), ]), ) { + fs::remove_dir_all(&buntar_path)?; tracing::error!("Could not create buntar: {e}"); } }