Skip to content

Commit

Permalink
Re-add poll frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Sep 4, 2024
1 parent 7b52c4c commit 4a6b811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/edge_proxy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ async def health_check():
buffer = settings.health_check.grace_period_seconds * len(
settings.environment_key_pairs
)
threshold = datetime.now() - timedelta(seconds=buffer)
threshold = datetime.now() - timedelta(
seconds=settings.api_poll_frequency_seconds + buffer
)
if last_updated_at < threshold:
return HealthCheckResponse(
status_code=500,
Expand Down

0 comments on commit 4a6b811

Please sign in to comment.