Skip to content

Commit cd78231

Browse files
authored
Fix health check predicates (#27)
This PR will fix the health check predicates
2 parents 793c94d + 6cebbac commit cd78231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PdfSmith/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133

134134
builder.Services.AddHealthChecks()
135135
.AddDbContextCheck<ApplicationDbContext>("Database", tags: ["ready"])
136-
.AddCheck<PlaywrightHealthCheck>("Playwright", tags: ["live"]);
136+
.AddCheck<PlaywrightHealthCheck>("Playwright", tags: ["ready"]);
137137

138138
if (builder.Environment.IsProduction())
139139
{
@@ -179,7 +179,7 @@
179179

180180
app.MapHealthChecks("/healthz/live", new HealthCheckOptions
181181
{
182-
Predicate = healthCheck => healthCheck.Tags.Contains("live"),
182+
Predicate = _ => false,
183183
ResponseWriter = HealthChecksResponseWriter()
184184
});
185185

0 commit comments

Comments
 (0)