From 64e2639c685cf1e5dd3c6149ee3739f1ba3658f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gurhem?= Date: Mon, 13 Nov 2023 16:03:39 +0100 Subject: [PATCH] fix: properly exit pollster when worker has a fatal error --- Common/src/Pollster/Pollster.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/Pollster/Pollster.cs b/Common/src/Pollster/Pollster.cs index 51f36961f..918c5cc33 100644 --- a/Common/src/Pollster/Pollster.cs +++ b/Common/src/Pollster/Pollster.cs @@ -373,7 +373,7 @@ await taskHandler.DisposeAsync() } } } - catch (RpcException e) when (e.StatusCode == StatusCode.Unavailable) + catch (RpcException e) when (TaskHandler.IsStatusFatal(e.StatusCode)) { // This exception should stop pollster healthCheckFailedResult_ = HealthCheckResult.Unhealthy("Worker unavailable",