Skip to content

Commit

Permalink
Adjust mail sendout
Browse files Browse the repository at this point in the history
  • Loading branch information
danielengelhardt committed Aug 14, 2024
1 parent 3eb8ba7 commit 63cc5ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DSTBundesliga/apps/dstffbl/services/season_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def create_season_users(users):
print("...done!")


def send_email_chunk(chunk_size=12):
# Rate limit is 500/h
def send_email_chunk(chunk_size=500):
open_mails = DSTEmail.objects.filter(send_ts=None)[:chunk_size]
for mail in open_mails:
success = mail.send_mail()
Expand Down

0 comments on commit 63cc5ed

Please sign in to comment.