> > "This request caused a new process to be started for your application, and > thus caused your application code to be loaded for the first time. This > request may thus take longer and use more CPU than a typical request for > your application"
This is the log for a loading request: https://developers.google.com/appengine/kb/java#What_Is_A_Loading_Request Loading request should be executed normally, but they take more time to execute becouse GAE needs to start an instance to execute it, it the request plus the start process is less than 60sec. If its exceeds the 60 secs you should see a DeadlineExeededException You can try a couple of things: 1 - Start a cron to make a request that rise the instance 1 min before launching the mail cron, so when the mail cron is executed the instance is up. 2 - Use a backend or Module ( https://developers.google.com/appengine/docs/java/modules/?hl=es) to handle the mail cron 3 - If you don't need Gmail API try using the more simple Appengine built in mail API ( https://developers.google.com/appengine/docs/python/mail/) cheers! Alejandro González Rodrigo *www.nextinit.com* <https://www.nextinit.com/> *alejandro.gonza...@nextinit.com <alejandro.gonza...@nextinit.com>* *+34 666 57 79 13* 2014-08-12 3:57 GMT+02:00 許吉宏 <2pythonwo...@gmail.com>: > Hi Vinny, > Yes , I'm using Gmail API and it works if I executes it manually . > Moreover , on the Cron tab , it says running the job successfully . > But on the application logs I got the information below . Any suggestion > to solve it ? Thank you . > > "This request caused a new process to be started for your application, and > thus caused your application code to be loaded for the first time. This > request may thus take longer and use more CPU than a typical request for > your application" > > BR, > Aoyii > > Vinny P於 2014年8月12日星期二UTC+8上午1時44分46秒寫道: >> >> On Sun, Aug 10, 2014 at 10:27 PM, 許吉宏 <2pytho...@gmail.com> wrote: >> >>> Has anyone ever used GAE Cron to send mails daily ? I used GAE Mail >>> API (CreateAuthorizedService('gmail', 'v1') ) to send a mail by Cron >>> daily. >>> Unfortunately , I never got one but Corn logs said it was successfully. >>> Does anyone know where is wrong with GAE Cron ? >>> >> >> >> You should be able to send emails via cron-initiated requests. Did you >> check the application logs (under logging) *and* the cron success status >> (under the Cron tab) for errors? >> >> >> On Sun, Aug 10, 2014 at 10:27 PM, 許吉宏 <2pytho...@gmail.com> wrote: >> >>> I used GAE Mail API (CreateAuthorizedService('gmail', 'v1') ) >>> >> >> >> Are you using the App Engine built-in mail API ( >> https://developers.google.com/appengine/docs/python/mail/ ) or the Gmail >> API ( https://developers.google.com/gmail/api/auth/web-server# >> send_authorized_requests_and_check_for_revoked_credentials ) ? >> >> >> ----------------- >> -Vinny P >> Technology & Media Consultant >> Chicago, IL >> >> App Engine Code Samples: http://www.learntogoogleit.com >> >> > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-appengine+unsubscr...@googlegroups.com. > To post to this group, send email to google-appengine@googlegroups.com. > Visit this group at http://groups.google.com/group/google-appengine. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.