From 54d9365e72171c0f040193b6aed301dc209ede18 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Wed, 17 Jul 2024 23:24:36 -0700 Subject: [PATCH] Use a 10-second buffer for pinging Sentry Sentry seems to intermittently not receive these pings. Might be rate limits. This commit relaxes the ping frequency to see if it helps. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4b45623..ee620b2 100644 --- a/main.py +++ b/main.py @@ -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',