Skip to content

Commit

Permalink
fix: properly exit pollster when worker has a fatal error (#536)
Browse files Browse the repository at this point in the history
aneojgurhem authored Nov 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 32f7437 + 64e2639 commit 13b4b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/src/Pollster/Pollster.cs
Original file line number Diff line number Diff line change
@@ -401,7 +401,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",

0 comments on commit 13b4b4d

Please sign in to comment.