If you are interested in this feature (blocking for new pull queue tasks), please file an feature request in the issue tracker (or if one already exists, star it).
We use the issue tracker to see what features user's are asking for and also to gauge how popular a specific request is. http://code.google.com/p/googleappengine/issues/list On 20 July 2011 11:03, Jim Mittler <[email protected]> wrote: > Thanks for the feedback. I can certainly understand why the blocking > techniques are discouraged; it's still hard to get out of that frame > of mind! > > As for an example of "what I shouldn't be doing", the pull queue API > has a lease_task method, but as far as I can tell there is no way to > call it and have it block (for any duration) until the first task > becomes available. > > If I try to lease a task via the REST API or the internal API, I ill > need to keep calling "lease_task" over and over again until I get > some work. So either I burn CPU or I sleep in between calls and I > introduce an unwelcome delay in my processing. > > Jim > > On Jul 18, 6:45 pm, "Nick Johnson (Google)" <[email protected]> > wrote: >> Hi Jim, >> >> Blocking in App Engine is generally strongly discouraged. Can you provide an >> example use-case in which you need to do this? >> >> -Nick Johnson >> >> >> >> >> >> >> >> >> >> On Tue, Jul 19, 2011 at 4:43 AM, Jim Mittler <[email protected]> wrote: >> > I have some patterns that I would very much like to try to implement >> > in GAE, but I can't seem to get past a requirement to coordinate a >> > signal between two tasks running in GAE. >> >> > There seems to be no GAE mechanism to wait for an event without going >> > into some sort of polling loop. Is there something maybe that I'm >> > missing or is this just wishful thinking? >> >> > Thanks!! >> >> > -- >> > 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. >> >> -- >> Nick Johnson, Developer Programs Engineer, App Engine > > -- > 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. > > -- 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.
