Is there a safe way to sleep when using a multi-threaded python application? We were seeing huge issues when we had a few regular small sleep statements. i.e. common use cases that were sleeping for 1/4 second.
Jacob On Tue, Sep 10, 2013 at 6:44 PM, Vinny P <[email protected]> wrote: > On Tue, Sep 10, 2013 at 4:18 PM, Peter D <[email protected]> wrote: > > If I add a task to a named pull queue synchronously, and after the enqueue >> operation I lease from that queue immediately (locally or via a notified >> backend), is it guaranteed that the task will be there? >> >> Or is it similar to the datastore, in that after adding a task, it may or >> may not be there for a while when attempting to lease? >> >> > > App Engine needs a bit of time between adding a task to a queue to then > making it available in the queue to lease. Sometimes the task is available > immediately, and other times there may be a few hundred milliseconds delay. > To be on the safe side, have your application sleep for a moment before > leasing tasks. > > > > ----------------- > -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. > -- Jacob Taylor CTO, Kahuna (650) 302-1864 www.useKahuna.com <http://www.usekahuna.com/> http://www.linkedin.com/in/thejacobtaylor<http://www.linkedin.com/in/adammarchick> -- 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.
