Skip to content

Commit b9289ef

Browse files
committed
Fixed a health check condition for the Stack Status Job #779
1 parent 8d02061 commit b9289ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Exceptionless.Core/Jobs/StackStatusJob.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, Canc
5858
if (!_lastRun.HasValue)
5959
return Task.FromResult(HealthCheckResult.Healthy("Job has not been run yet."));
6060

61-
if (SystemClock.UtcNow.Subtract(_lastRun.Value) > TimeSpan.FromSeconds(15))
62-
return Task.FromResult(HealthCheckResult.Unhealthy("Job has not run in the last 15 seconds."));
61+
if (SystemClock.UtcNow.Subtract(_lastRun.Value) > TimeSpan.FromMinutes(1))
62+
return Task.FromResult(HealthCheckResult.Unhealthy("Job has not run in the last minute."));
6363

64-
return Task.FromResult(HealthCheckResult.Healthy("Job has run in the last 15 seconds."));
64+
return Task.FromResult(HealthCheckResult.Healthy("Job has run in the last minute."));
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)