The only solution I can think of is a custom variable/handling scheme I already traverse a variable that has request/domain information that's needed in operations My current best solution is to store rpcs's inside it too, handle the rpcs's at the end of every routine
Requires a lot of refactoring and there would probably be a lot of initially missed routines that will cause issues initially, not a very decent solution, all of these for saving time from 1-5 defer's I don't know how task.add works, however it also does some scheduling on it's own as far as I see from the buggy _ah/stats, so the whole thing is probably not worth it much I've already converted routines with 200+ task insertions to async/manual wait, it's the scattered insertions that are the issue I've inspected @ndb.toplevel, not too deeply, however it didn't seem that the method can be used for tasks, it was ndb-specific as far as I remember On Wednesday, October 16, 2013 3:54:29 PM UTC+3, Vinny P wrote: > > On Wed, Oct 16, 2013 at 1:41 AM, Kaan Soral <[email protected]<javascript:> > > wrote: > >> I've asked this on S.O. but couldn't get an official/certain answer - >> http://stackoverflow.com/questions/19370726/is-it-safe-to-fire-and-forget-task-add-async-on-appengine/19374115 >> >> However while investigating an issue, I found an instance where the task >> is added async, but it didn't execute, which led me to believe that it's >> unsafe to fire and forget about the async task rpcs >> > > > In my experience, async added tasks are unsafe - it's always possible for > the operation to fail. I can't link you to any official documentation > though, this is just my experience. > > > On Wed, Oct 16, 2013 at 1:43 AM, Kaan Soral <[email protected]<javascript:> > > wrote: > >> Is it possible to replicate @ndb.toplevel / ndb _async functionality for >> taskqueue? >> Maybe something like @async_safe that will handle all lingering async >> calls >> >> > > Unfortunately I can't answer this question :-/ > > +1 to this though. > > > ----------------- > -Vinny P > Technology & Media Advisor > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
