MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / send_org_over_limit_alert

Function send_org_over_limit_alert

api/organisations/tasks.py:54–67  ·  view source on GitHub ↗
(organisation_id: int)

Source from the content-addressed store, hash-verified

52
53@register_task_handler()
54def send_org_over_limit_alert(organisation_id: int) -> None:
55 organisation = Organisation.objects.get(id=organisation_id)
56
57 subscription_metadata = organisation.subscription.get_subscription_metadata()
58 FFAdminUser.send_alert_to_admin_users( # type: ignore[no-untyped-call]
59 subject=ALERT_EMAIL_SUBJECT,
60 message=ALERT_EMAIL_MESSAGE
61 % (
62 str(organisation.name),
63 organisation.num_seats,
64 subscription_metadata.seats,
65 organisation.subscription.plan,
66 ),
67 )
68
69
70@register_task_handler()

Calls 3

getMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…