Hi Alex,
  You can set the lease expiration time when leasing the task, as in
the examples here:
     
http://code.google.com/appengine/docs/java/taskqueue/overview-pull.html#Leasing_Tasks

     
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/Queue.html#leaseTasks(long,%20java.util.concurrent.TimeUnit,%20long)


  I'm not aware of any built in way to set the lease time at task
insertion.  To do that I'd use some configuration value with in your
app.


Robert






On Wed, Jun 8, 2011 at 06:32, radzish <[email protected]> wrote:
> Hi Robert,
> ETA is something different. According to docs you sent me links to:
> "A datetime.datetime object representing the earliest time this task can be
> leased". Which means that the task will not be leased before ETA time.
> What I need is lease expiration:
> Imagine the situation: backend leased some tasks. Backend stopped gracefully
> and some task are remaining "leased" in the queue. So even if backend
> restarts, it can not handle these tasks because they are leased already.
> Documentation says that no one can lease tasks being leased unless the lease
> expires. I am interested in how can I specify this lease expiration time as
> less as possible.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/UFBLVTFGN180SDBK.
> 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.

Reply via email to