From a7da93310f5ad11ef63c79022355df7cba53acc6 Mon Sep 17 00:00:00 2001 From: Zach Waterfield Date: Thu, 22 Aug 2024 16:14:07 -0400 Subject: [PATCH] chore: add rate limit to the sync to billing (#24539) --- posthog/tasks/sync_to_billing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/tasks/sync_to_billing.py b/posthog/tasks/sync_to_billing.py index 5100139e7e582..23e5c09b87aec 100644 --- a/posthog/tasks/sync_to_billing.py +++ b/posthog/tasks/sync_to_billing.py @@ -4,7 +4,7 @@ from sentry_sdk import capture_message -@shared_task(ignore_result=True) +@shared_task(ignore_result=True, rate_limit="4/s") def sync_to_billing(organization_id: str) -> None: organization = Organization.objects.get(id=organization_id)