Skip to content

utils

django_spire.notification.utils

get_throttle_sleep_time

Source code in django_spire/notification/utils.py
def get_throttle_sleep_time() -> float:
    return float(getattr(settings, NOTIFICATION_THROTTLE_RATE_PER_MINUTE_SETTINGS_NAME) / 60)