Skip to content
Snippets Groups Projects
Commit f2ee173a authored by Albert St. Aubin's avatar Albert St. Aubin
Browse files

Increase the Throttle on the enrollments API to allow ecommerce to request more frequently

[LEARNER-4676]
parent 855c4e42
No related merge requests found
......@@ -74,9 +74,12 @@ class ApiKeyPermissionMixIn(object):
class EnrollmentUserThrottle(UserRateThrottle, ApiKeyPermissionMixIn):
"""Limit the number of requests users can make to the enrollment API."""
# The staff Throttle rate is currently being adjusted to meet the needs of the eCommerce API calls.
# This should be reviewed for performance and we should determine the optimum throttle for the needs of this API.
# https://openedx.atlassian.net/wiki/spaces/LEARNER/pages/645923004/eCommerce+Guild
THROTTLE_RATES = {
'user': '40/minute',
'staff': '1200/minute',
'staff': '2000/minute', # Decided on by looking at number of API calls to the Enrollment API from Staff users
}
def allow_request(self, request, view):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment