*1) so how much time does my "cron task" have to finish?* The cron job/scheduled task, to an autoscaled instance, has 60 seconds to get a response back. However, as you note...
*2) if inside my "cron task" I create a DeferredTask and add it to a queue. **how much time does this new task have to finish?* It's common to have a cron job call a handler that fires off a bunch of tasks. This way the actual work is handled in the 10 minute deadline, and the cron is handled within 60 seconds. Your assumption is correct. *3) on this page : java/task_deadlines <https://cloud.google.com/appengine/docs/java/taskqueue/overview-push#task_deadlines> "**This deadline is separate from user requests, which have a 60-second deadline." **I really do not understand the part that is underlined!* This is referring to the longer task deadlines, which are 10 minutes on Automatic Scaling (F1-F4) and 24 hours on Basic and Manual scaling (B1-B4). Hopefully this is helpful in clarifying your understanding of task queues. Cheers, Josh On Wed, Nov 18, 2015 at 4:48 AM, Trez Ertzzer <[email protected]> wrote: > Hello. > Thank you for all these informations. > I have a few questions: > I am only using "Automatic Scaling". > > > *1) so how much time does my "cron task" have to finish?* > --> If we consider that a cron task is just an http request then 60 > seconds, if it's a task then 10 minutes. Which is it? > > *2) if inside my "cron task" I create a DeferredTask and add it to a > queue. ** how much time does this new task have to finish? *(I ONLY USE > AUTOMATIC SCALING). > --> I guess 10 minutes... can you please confirm. > > > *3) on this page : java/task_deadlines > <https://cloud.google.com/appengine/docs/java/taskqueue/overview-push#task_deadlines>*Could > you please explain to me: > > *"**A task must finish executing and send an HTTP response value between > 200–299 within a time interval that depends on the scaling type > <https://cloud.google.com/appengine/docs/java/modules#Java_Instance_scaling_and_class> > of the App Engine module that receives the request. This deadline is > separate from user requests, which have a 60-second deadline."* > > > > > > *I really do not understand the part that is underlined!Thank you very > much for your help.* > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/6a848d1d-d6b9-46e2-a791-0b81d9bb8852%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/6a848d1d-d6b9-46e2-a791-0b81d9bb8852%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Josh Moore | Cloud Solutions Engineer | [email protected] | -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAOvpJmVEf9adi7%3D_wxWh3Fu22PNasEpWsyj00oz6G4%2B4q9pqrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
