From fa9490886f8a022e8e4fa22f11f371f7a37495cd Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 13 Mar 2025 12:07:33 +0100 Subject: [PATCH] more transparent pg listener error --- backend/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index 41d53b14af..54ea123fc3 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -665,9 +665,14 @@ Windmill Community Edition {GIT_VERSION} tracing::info!("received killpill for monitor job"); break; }, - notification = listener.recv() => { + notification = listener.try_recv() => { match notification { Ok(n) => { + if n.is_none() { + tracing::error!("Could not receive notification, attempting to reconnect to pg listener"); + continue; + } + let n = n.unwrap(); tracing::info!("Received new pg notification: {n:?}"); match n.channel() { "notify_config_change" => {