Hi Evaldes, Since there is a time limit of 30 seconds per request, sleeping for a minute will likely cause your request to receive a deadline exceeded exception. I think a better approach would be to use the task queue to send the emails at the desired rate (you can set the rate at which tasks are executed in queue.yaml).
http://code.google.com/appengine/docs/python/taskqueue/overview.html#Using_Task_Queues_in_Python http://code.google.com/appengine/docs/python/config/queue.html Thank you, Jeff On Mon, Aug 17, 2009 at 12:10 AM, Evaldas Taroza <[email protected]> wrote: > > Thanks for clarification, Jeff. So for sending 10 emails at once I'll > need to do something like this: > > int emailCount = 10; > while(emailCount > 0) { > ...send8emails... > emailCount -= 8; > Thread.sleep(1000*60); > } > > Is that right? > > This also holds with the billing enabled, just consider the emailCount > = 6000 (over quota). > > Evaldas > > > On Aug 14, 3:40 am, "Jeff S (Google)" <[email protected]> wrote: > > Hi Evaldas, > > > > Yes your understanding is correct. You may be able to go over 8 > recipients > > per minute for a short burst, but that is the sustained limit. However, > if > > you enable billing you should be able to send at a higher rate. > > > > Happy coding, > > > > Jeff > > > > On Fri, Aug 7, 2009 at 8:38 AM, Evaldas Taroza <[email protected]> wrote: > > > > > I am reading the quatas of appengine for email: > > >http://code.google.com/appengine/docs/quotas.html#Mail. > > > > > I can send 1 an email to 8 recipients per minute. Does it mean that > > > when I send an email to 10 recipients at once I will get the > > > OverQuotaError? Or will this email go to all recipients but at the > > > speed of 8 recipients per minute? > > > > > Evaldas > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
