Skip to content

Commit 90a43fa

Browse files
authored
Use 60s Sentry healthcheck pings (#2)
We are still hitting rate limits. This PR reduces the number of pings further. <img width="2672" alt="image" src="https://github.com/user-attachments/assets/c35edc38-d130-4bfd-a0af-a9f3a3cf7b76">
1 parent 54d9365 commit 90a43fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ async def health_endpoint(_request):
120120
success = True
121121

122122
current_time = time()
123-
# Ping Sentry at least every minute. Using a 30s buffer to be safe.
124-
if IS_SENTRY_ENABLED and current_time - state["sentry_cron_last_ping_time"] > 50:
123+
# Ping Sentry at least every minute.
124+
if IS_SENTRY_ENABLED and current_time - state["sentry_cron_last_ping_time"] >= 60:
125125
state["sentry_cron_last_ping_time"] = current_time
126126
capture_checkin(
127127
monitor_slug='discord-provisioner-bot',

0 commit comments

Comments
 (0)