Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Slow down e-mail send to not hit quota

  • Loading branch information...
commit 271fb59ddfb47da4c8d2a49be29fdd5ffcc12511 1 parent e2f81bb
Brian Klug dustball authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  main.py
2  main.py
View
@@ -489,7 +489,7 @@ def post(self):
countdown = 0
for membership in Membership.all().filter('status =', "suspended"):
if not membership.unsubscribe_reason and membership.spreedly_token and "Deleted" not in membership.last_name:
- countdown += 90
+ countdown += 1200 # One e-mail every 20 min = 72 e-mails a day (100 is free appengine limit)
self.response.out.write("Are you still there "+membership.email+ "?<br/>")
taskqueue.add(url='/tasks/areyoustillthere_mail', params={'user': membership.key().id()}, countdown=countdown)
Please sign in to comment.
Something went wrong with that request. Please try again.