Skip to content

Commit

Permalink
fix: properly exit pollster when worker has a fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Nov 13, 2023
1 parent bd3dfef commit 64e2639
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
Expand Up @@ -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",
Expand Down

0 comments on commit 64e2639

Please sign in to comment.