From 54a254988051cc2ccdbf4de2e637bf03fbc03f0b Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Tue, 7 Oct 2025 17:49:12 +0200 Subject: [PATCH] fix(backend): pg connection caching --- backend/windmill-worker/src/pg_executor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/windmill-worker/src/pg_executor.rs b/backend/windmill-worker/src/pg_executor.rs index 464a617ae4..ca97af4d5f 100644 --- a/backend/windmill-worker/src/pg_executor.rs +++ b/backend/windmill-worker/src/pg_executor.rs @@ -289,6 +289,7 @@ pub async fn do_postgresql( tracing::error!("connection error: {}", e); } }); + drop(mtex); (Some((client, handle)), None) } else { tracing::info!("Creating new connection"); @@ -307,6 +308,7 @@ pub async fn do_postgresql( tracing::error!("connection error: {}", e); } }); + drop(mtex); (Some((client, handle)), None) };