Skip to content

Commit

Permalink
chore: limit usage reports to billing (#24722)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlwaterfield authored Aug 30, 2024
1 parent c972f71 commit a165af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/tasks/usage_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def get_org_owner_or_first_user(organization_id: str) -> Optional[User]:
return user


@shared_task(**USAGE_REPORT_TASK_KWARGS, max_retries=3)
@shared_task(**USAGE_REPORT_TASK_KWARGS, max_retries=3, rate_limit="10/s")
def send_report_to_billing_service(org_id: str, report: dict[str, Any]) -> None:
if not settings.EE_AVAILABLE:
return
Expand Down

0 comments on commit a165af7

Please sign in to comment.