Skip to content

Commit

Permalink
Increase Sentry ping time to 2 minutes
Browse files Browse the repository at this point in the history
#2 was still triggering rate limits
  • Loading branch information
ben-z authored Aug 3, 2024
1 parent 90a43fa commit 73d6fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async def health_endpoint(_request):
success = True

current_time = time()
# Ping Sentry at least every minute.
if IS_SENTRY_ENABLED and current_time - state["sentry_cron_last_ping_time"] >= 60:
# Ping Sentry every 2 minutes
if IS_SENTRY_ENABLED and current_time - state["sentry_cron_last_ping_time"] >= 120:
state["sentry_cron_last_ping_time"] = current_time
capture_checkin(
monitor_slug='discord-provisioner-bot',
Expand Down

0 comments on commit 73d6fb7

Please sign in to comment.