Skip to content

Commit

Permalink
Use a 10-second buffer for pinging Sentry
Browse files Browse the repository at this point in the history
Sentry seems to intermittently not receive these pings. Might be rate limits. This commit relaxes the ping frequency to see if it helps.
  • Loading branch information
ben-z committed Jul 18, 2024
1 parent c914341 commit 54d9365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def health_endpoint(_request):

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

0 comments on commit 54d9365

Please sign in to comment.