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.

Reply via email to