From aff95c33b2fd4c248dfaf595b8d18a6dbc50f0e6 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 3 Apr 2026 20:00:22 -0400 Subject: [PATCH] fix: create pg connection for cloud-hosted jobs instead of panicking (#8710) Co-authored-by: Claude Opus 4.6 (1M context) --- backend/windmill-worker/src/pg_executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/pg_executor.rs b/backend/windmill-worker/src/pg_executor.rs index d3e085a7dd..5aab50c3f9 100644 --- a/backend/windmill-worker/src/pg_executor.rs +++ b/backend/windmill-worker/src/pg_executor.rs @@ -372,7 +372,7 @@ pub async fn do_postgresql( } } else { cached_client = None; - new_client = None; + new_client = Some(new_pg_connection(&database, use_iam_auth).await?); } let (sig, typed_schema) = parse_pgsql_sig_with_typed_schema(&query)