Skip to content

Commit

Permalink
Increase send_instructor_email_digests rate limit
Browse files Browse the repository at this point in the history
Increase the rate limit of the `send_instructor_email_digests()` Celery
task. This is because I want to try decreasing the task's `batch_size`
and correspondingly increasing its `rate_limit` to see what effect that
has on performance, with an eye towards potentially removing the
batching feature altogether in order to simplify adding future features
to this code.
  • Loading branch information
seanh committed Nov 15, 2023
1 parent 3169b81 commit 34071cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/tasks/email_digests.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def send_instructor_email_digest_tasks(*, batch_size):
max_retries=2,
retry_backoff=3600,
retry_backoff_max=7200,
rate_limit="1/m",
rate_limit="3/m",
)
def send_instructor_email_digests(
*, h_userids: List[str], created_after: str, created_before: str, **kwargs
Expand Down

0 comments on commit 34071cc

Please sign in to comment.