Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Sep 23, 2024
1 parent 8889b77 commit 02c13b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ public static IServiceCollection AddInfrastructure(this IServiceCollection servi
name: "postgres",
healthQuery: "SELECT 1",
failureStatus: HealthStatus.Unhealthy,
tags: ["dependencies"])
tags: ["dependencies", "critical"])
.AddCheck<WellKnownEndpointsHealthCheck>(
"Well-Known Endpoints",
failureStatus: HealthStatus.Unhealthy,
tags: ["dependencies", "auth"]);
tags: ["dependencies"]);


if (environment.IsDevelopment())
Expand Down
4 changes: 2 additions & 2 deletions src/Digdir.Domain.Dialogporten.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ static void BuildAndRun(string[] args)
});
app.MapHealthChecks("/liveness", new HealthCheckOptions
{
Predicate = check => check.Tags.Contains("self"), // Retains the self check for liveness
Predicate = check => check.Tags.Contains("self"),
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
app.MapHealthChecks("/readiness", new HealthCheckOptions
{
Predicate = check => check.Tags.Contains("dependencies"),
Predicate = check => check.Tags.Contains("critical"),
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
app.MapHealthChecks("/health", new HealthCheckOptions
Expand Down

0 comments on commit 02c13b0

Please sign in to comment.