Skip to content

Commit

Permalink
Increase buffer for currently sending emails
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Jul 5, 2023
1 parent 00d5985 commit 6cecff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/tasks/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def send_automated_emails():
for automated_email in automated_emails:
if automated_email.currently_sending:
if automated_email.last_send_time:
if (datetime.now() - automated_email.last_send_time) < timedelta(seconds=600):
if (datetime.now() - automated_email.last_send_time) < timedelta(hours=1):
# Looks like another thread is still running and hasn't timed out.
continue
automated_email.currently_sending = True
Expand Down

0 comments on commit 6cecff4

Please sign in to comment.