Skip to content

Commit

Permalink
disable health check on lexbox which depends on fw-headless so that w…
Browse files Browse the repository at this point in the history
…e avoid issues in production where fw-headless is down
  • Loading branch information
hahn-kev committed Nov 12, 2024
1 parent 4cfc4b5 commit f0dc3e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/LexBoxApi/LexBoxKernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public static void AddLexBoxApi(this IServiceCollection services,
services.AddScheduledTasks(configuration);
services.AddHealthChecks()
.AddCheck<HgWebHealthCheck>("hgweb", HealthStatus.Unhealthy, ["hg"], TimeSpan.FromSeconds(5))
.AddCheck<FwHeadlessHealthCheck>("fw-headless", HealthStatus.Unhealthy, ["fw-headless"], TimeSpan.FromSeconds(5));
//todo enable this once we want to make lexbox depend on fw-headless
// .AddCheck<FwHeadlessHealthCheck>("fw-headless", HealthStatus.Unhealthy, ["fw-headless"], TimeSpan.FromSeconds(5))
;
services.AddSyncProxy();
AuthKernel.AddLexBoxAuth(services, configuration, environment);
services.AddLexGraphQL(environment);
Expand Down

0 comments on commit f0dc3e6

Please sign in to comment.